Welcome! Log In Create A New Profile

Advanced

Re: Nginx cache 1 KEY into multiple cache files (cache not running)

Maxim Dounin
November 19, 2015 11:00AM
Hello!

On Thu, Nov 19, 2015 at 12:12:18PM -0200, Guilherme wrote:

> In these cases, when Vary is present in response headers and generate
> multiple cache files for the same key, how nginx determines cache file
> names for variants?

Secondary keys are calculated as an MD5 hash of the main key and
headers of a request listed in Vary. Details can be found in the
source code, see the ngx_http_file_cache_vary() function:

http://hg.nginx.org/nginx/file/tip/src/http/ngx_http_file_cache.c#l1043

--
Maxim Dounin
http://nginx.org/

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

Nginx cache 1 KEY into multiple cache files (cache not running)

semseoymas November 18, 2015 09:40PM

Re: Nginx cache 1 KEY into multiple cache files (cache not running)

semseoymas November 18, 2015 11:31PM

Re: Nginx cache 1 KEY into multiple cache files (cache not running)

Maxim Dounin November 19, 2015 08:28AM

Re: Nginx cache 1 KEY into multiple cache files (cache not running)

geberhart November 19, 2015 09:14AM

Re: Nginx cache 1 KEY into multiple cache files (cache not running)

Maxim Dounin November 19, 2015 11:00AM

Re: Nginx cache 1 KEY into multiple cache files (cache not running)

semseoymas November 19, 2015 06:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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