Proxy Caching ignore path

jvanetten nginx-forum at forum.nginx.org
Tue Aug 6 16:12:34 UTC 2019


itpp2012 Wrote:
-------------------------------------------------------
> The first location match is the active one, add another location
> before this one to change its caching behavior.


So adding the following below the other location should work?:

location /gateway/public/files/ {
expires -1;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate,
proxy-revalidate, max-age=0';
}

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,285128,285131#msg-285131



More information about the nginx mailing list