Cache by mime type
Denis F. Latypoff
latypoff at yandex.ru
Fri Jul 20 14:03:03 UTC 2012
20.07.2012, 20:57, "burn" <nginx-forum at nginx.us>:
> Like the title says, can I cache images (or whatever) by mime type, not
> extension?
Yes.
http://nginx.org/en/docs/http/ngx_http_map_module.html
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_bypass
> The only relevant info I found is at
> http://stackoverflow.com/questions/6212361/nginx-cache-file-by-mime-type
> However, the suggested config is not valid, because proxy directive
> cannot be used inside if.
forget about "if".
--
br, Denis F. Latypoff.
More information about the nginx
mailing list