Proxy Caching ignore path

jvanetten nginx-forum at
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:,285128,285131#msg-285131

More information about the nginx mailing list