help about how proxy_cache to store differet cache file by http header vary Accept-Encoding like squid

yangchunyu yangchunyu at
Wed Mar 3 20:19:54 MSK 2010

We use nginx as reserve proxy server and want use proxy_cache to replace
There are apache servers behind nginx, we use deflate module to compress
text/html pages.
The problem is if proxy_cache has cached the compressed page but the client
side that request page does not support uncompress, the page can not be see
I know squid using http header Accept-Encoding to store different cache
file, but there is no way to use it in nginx proxy_cache_key. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list