Welcome! Log In Create A New Profile

Advanced

Cache based on custom header

All files from this thread

File Name File Size   Posted by Date  
smime.p7s 4.7 KB open | download Chad Hansen via nginx 02/10/2017 Read message
smime.p7s 4.7 KB open | download Chad Hansen via nginx 02/10/2017 Read message
Chad Hansen via nginx
February 10, 2017 09:06AM
I use nginx as a reverse proxy, and upstream clients have a need for my
service to cache differently than downstream servers.

Is there a way to change what header nginx uses to accept cache settings?
Or a way to re-write cache headers before the cache settings take affect?

For example, I could have the upstream server set X-CustomCache (intended
for my service) and CacheControl (intended for my downstream), then use
add-header to set X-Accel-Expires to that value, except the header re-write
happens after the request has been cached from Cache-Control.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - smime.p7s (4.7 KB)
Subject Author Posted

Cache based on custom header Attachments

Chad Hansen via nginx February 10, 2017 09:06AM

Re: Cache based on custom header

pbooth February 10, 2017 11:36AM

Re: Cache based on custom header Attachments

Chad Hansen via nginx February 10, 2017 11:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready