Vary header and cache_key
guilherme.e at gmail.com
Thu Oct 8 18:16:03 UTC 2015
Before Nginx 1.7.7, the file name in a cache was a result of applying the
MD5 function to the cache_key.
Now the file name, when Vary header is present in a response of the proxied
request, is not the MD5 of the cache_key anymore.
The above requests generate two different cache files (response header
include *Vary: Accept-Encoding*):
curl -H 'Accept-Encoding: gzip' http://example.com/script.js
How is calculated the file name in this case?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx