Welcome! Log In Create A New Profile

Advanced

Re: Is proxy_cache_bypass recaching?

Calin Don
November 23, 2011 06:32AM
Yes. But be aware of Cache-Control header sent by your backend. (
http://wiki.nginx.org/HttpProxyModule#proxy_cache : The cache honors
backend's "Expires", "Cache-Control: no-cache", and "Cache-Control:
max-age=XXX" headers since version 0.7.48. Since version 7.66, "private"
and "no-store" are also honored.)

On Wed, Nov 23, 2011 at 05:31, Quintin Par <quintinpar@gmail.com> wrote:

> Can someone help me if this please?
>
> On Tue, Nov 22, 2011 at 8:53 AM, Quintin Par <quintinpar@gmail.com> wrote:
>
>> Hi all,
>>
>> I have this in my location directive
>>
>> proxy_cache_bypass $http_soon;
>>
>> now I do a curl call to invalidate
>>
>>
>>
>> [user@ip-10-111 ~]$ curl "www.site.com/teaser" -I -H "soon:true"
>>
>> HTTP/1.1 200 OK
>>
>> Server: nginx
>>
>> Date: Tue, 22 Nov 2011 03:07:20 GMT
>>
>> Content-Type: text/html; charset=utf-8
>>
>> Connection: keep-alive
>>
>> Keep-Alive: timeout=60
>>
>> Vary: Accept-Encoding
>>
>> Vary: Cookie
>>
>> X-Mod-Pagespeed: 0.9.17.7-716
>>
>> Cache-Control: max-age=0, no-cache, no-store
>>
>> X-Cache-Status: BYPASS
>>
>>
>>
>> [user@ip-10-111 ~]$ curl "www.site.com/teaser" -I
>>
>> HTTP/1.1 200 OK
>>
>> Server: nginx
>>
>> Date: Tue, 22 Nov 2011 03:07:37 GMT
>>
>> Content-Type: text/html; charset=utf-8
>>
>> Connection: keep-alive
>>
>> Keep-Alive: timeout=60
>>
>> Vary: Accept-Encoding
>>
>> Vary: Cookie
>>
>> X-Mod-Pagespeed: 0.9.17.7-716
>>
>> Cache-Control: max-age=0, no-cache, no-store
>>
>> X-Cache-Status: HIT
>>
>>
>>
>> Does this mean that the curl call with the header is* recaching the page
>> and the subsequent hits are cache hits?*
>>
>> -Quintin
>>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Is proxy_cache_bypass recaching?

Quintin Par November 21, 2011 10:26PM

Re: Is proxy_cache_bypass recaching?

Quintin Par November 22, 2011 10:32PM

Re: Is proxy_cache_bypass recaching?

Calin Don November 23, 2011 06:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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