Welcome! Log In Create A New Profile

Advanced

Vary header and cache_key

October 08, 2015 02:18PM
Hello!

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
curl http://example.com/script.js

*proxy_cache_key: *$scheme://$http_host$uri$is_args$args


How is calculated the file name in this case?

Tks,

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

Vary header and cache_key

geberhart October 08, 2015 02:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 286
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