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,by jvanetten - Nginx Mailing List - English
I have a situation where I need to enable proxy cache for a gateway but anything that goes to /gateway/public/files/ I do not want to cache. I have tried nested locations and all kinds of configurations with no success. It usually lands up with 404 errors on /gateway/public/files/ the complete url includes a file reference like so /gateway/public/files/kd774831ldja3 caching is working for anythby jvanetten - Nginx Mailing List - English