proxy_cache_valid question

Resicow resicow at
Thu Apr 23 21:27:46 MSD 2009

Hello Community,

Is it possible to assign different proxy_cache_valid values for 
different file extensions? So for example .jpg could live in the cache 
for 7 days, but .js files would only live for 6 hours?

I guess you could do this with multiple location directives, just don't 
know exactly how or if it is supported.



More information about the nginx mailing list