Welcome! Log In Create A New Profile

Advanced

Re: vBulletin caching proxy

Maxim Dounin
October 22, 2010 06:52AM
Hello!

On Fri, Oct 22, 2010 at 06:19:45AM -0400, meto wrote:

> I figured out that it must be something with headers. Does anybody knows
> why nginx ignores cache with those headers?
>
> [code]
> Server nginx/0.8.53
> Date Fri, 22 Oct 2010 10:16:28 GMT
> Content-Type text/html; charset=ISO-8859-2
> Connection keep-alive
> X-Powered-By PHP/5.3.3
> X-Pingback http://ls2009.eu/vbseo-xmlrpc/
> Set-Cookie bb_lastvisit=1287437336; expires=Sat, 22-Oct-2011 10:16:28
> GMT; path=/; domain=ls2009.eu bb_lastactivity=0; expires=Sat,
> 22-Oct-2011 10:16:28 GMT; path=/; domain=ls2009.eu
> vbseo_loggedin=deleted; expires=Thu, 22-Oct-2009 10:16:27 GMT; path=/
> Cache-Control private
> Pragma private
> Last-Modified Wed, 20 Oct 2010 21:01:11 GMT
> Vary Accept-Encoding,User-Agent
> Content-Encoding gzip
> Content-Length 9560
> [/code]
> Cache-control should be ignored according to proxy cache settings...

Since 0.8.44 nginx doesn't cache by default responses with
Set-Cookie. If you want them to be cached you have to add
"proxy_ignore_headers Set-Cookie".

Note well: you may also want to add "proxy_hide_header Set-Cookie"
(or make sure cookies set aren't private, or make sure your
proxy_cache_key distinct for different users).

Maxim Dounin

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

vBulletin caching proxy

meto October 20, 2010 05:51PM

Re: vBulletin caching proxy

meto October 22, 2010 06:19AM

Re: vBulletin caching proxy

Maxim Dounin October 22, 2010 06:52AM

Re: vBulletin caching proxy

meto October 22, 2010 06:58AM



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