Welcome! Log In Create A New Profile

Advanced

Re: nginx-0.8.37

Manlio Perillo
May 18, 2010 01:18PM
Igor Sysoev ha scritto:
> On Tue, May 18, 2010 at 06:34:18PM +0200, Manlio Perillo wrote:
>
>> Igor Sysoev ha scritto:
>>> On Tue, May 18, 2010 at 05:59:07PM +0200, Manlio Perillo wrote:
>>>
>>>> Igor Sysoev ha scritto:
>>>>> Changes with nginx 0.8.37 17 May 2010
>>>>> [...]
>>>>> *) Bugfix: nginx ignored the "private" and "no-store" values in the
>>>>> "Cache-Control" backend response header line.
>>>>>
>>>> By the way, last time I checked the code, I noted that Nginx always
>>>> ignore the Vary header, and require the cache key to be explicitly set.
>>>>
>>>> Is it possible to have a default cache key, generated from request URI
>>>> (including query string) and Vary header?
>>> The Vary header is response header, you can not use it in cache key.
>>>
>> I meant the Vary header from backend response.
>
> Backend response headers can not be used in cache key, because nginx
> does not know them: the key is used to find a cached backend response.
>

The idea is two use a two level cache lookup.

The first level is done using original cache_key.
The associated cache zone will contain the Vary header specified when
backend response is cached.

The second level is done using cache_key updated with request headers
specified in Vary header.


This is just an idea, I was curious to know if adding support to Vary
header is possible with current implementation.


Thanks Manlio

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

nginx-0.8.37

Igor Sysoev May 17, 2010 02:22AM

Re: nginx-0.8.37

Joe May 17, 2010 02:24AM

Re: nginx-0.8.37

lhmwzy May 17, 2010 04:56AM

Re: nginx-0.8.37

Weibin Yao May 17, 2010 05:52AM

Re: nginx-0.8.37

Igor Sysoev May 17, 2010 05:56AM

Re: nginx-0.8.37

Wendal Chen May 17, 2010 06:12AM

Re: nginx-0.8.37

Manlio Perillo May 18, 2010 12:10PM

Re: nginx-0.8.37

Igor Sysoev May 18, 2010 12:16PM

Re: nginx-0.8.37

Manlio Perillo May 18, 2010 12:44PM

Re: nginx-0.8.37

Igor Sysoev May 18, 2010 12:50PM

Re: nginx-0.8.37

Manlio Perillo May 18, 2010 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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