Welcome! Log In Create A New Profile

Advanced

Re: Cache by mime type

Denis F. Latypoff
July 20, 2012 10:04AM
20.07.2012, 20:57, "burn" <nginx-forum@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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Cache by mime type

burn July 20, 2012 09:57AM

Re: Cache by mime type

Denis F. Latypoff July 20, 2012 10:04AM

Re: Cache by mime type

burn July 20, 2012 01:47PM

Re: Cache by mime type

Valentin V. Bartenev July 20, 2012 02:00PM

Re: Cache by mime type

burn July 20, 2012 02:23PM

Re: Cache by mime type

Valentin V. Bartenev July 20, 2012 02:32PM

Re: Cache by mime type

burn July 20, 2012 02:45PM

Re: Cache by mime type

Valentin V. Bartenev July 20, 2012 02:52PM

Re: Cache by mime type

burn July 20, 2012 03:05PM

Re: Cache by mime type

Francis Daly July 22, 2012 04:10AM

Re: Cache by mime type

burn July 22, 2012 05:27AM

Re: Cache by mime type

Francis Daly July 22, 2012 02:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 183
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready