Strange different behavior
Bernardf FRIT
bernard at frit.net
Wed Jan 13 17:39:43 CET 2010
Hi,
I'm facing a pretty strange issue. URLs not supposed to be cached are in
cache when
requested by firefox but not by lwp.
I'm suspecting cookie management... but I don't realy know how to avoid
caching
these URLs. Any help would be apreciated.
URL like XX.html are XXX.php rewrited.
In vcl I have :
if (req.request == "GET" && req.url ~ "\.(html|php)") {
pass;
}
And when requesting pages :
1. Under Linux/GET
# GET -m HEAD
_*http://XXXXXXXXXXX/annonces-immobilier/appartement-roanne/11.html*_
200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Connection: close
_*Date: Wed, 16 Dec 2009 07:26:46 GMT*_
Pragma: no-cache
Via: 1.1 varnish
Age: 0
Server: Apache-NSCA
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Client-Date: Wed, 16 Dec 2009 07:26:20 GMT
Client-Response-Num: 1
Set-Cookie: PHPSESSID=36e4f91a2e8ae9b1aa00d819c06e03a8; path=/
Set-Cookie: DYNSRV=s0; path=/
_*X-Cache: MISS*_
X-Served-By: Server 203
X-Varnish: 1411446250
2. Under Windows/Firefox
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding,User-Agent
Content-Encoding: gzip
Content-Type: text/html
Content-Length: 11758
X-Cacheable: YES
_*Date: Wed, 16 Dec 2009 07:30:21 GMT*_
X-Varnish: 1411446251 1411446175
Age: 570
Via: 1.1 varnish
Connection: keep-alive
X-Served-By: Server 203
_*X-Cache: HIT*_
X-Cache-Hits: 1
Server: Apache-NSCA
3. Under Linux/GET
# GET -m HEAD
_*http://XXXXXXXXXXX/annonces-immobilier/appartement-roanne/11.html*_
200 OK
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Connection: close
_*Date: Wed, 16 Dec 2009 07:31:34 GMT*_
Pragma: no-cache
Via: 1.1 varnish
Age: 0
Server: Apache-NSCA
Vary: Accept-Encoding,User-Agent
Content-Type: text/html
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Client-Date: Wed, 16 Dec 2009 07:31:08 GMT
Client-Response-Num: 1
Set-Cookie: PHPSESSID=fd043b9a9207d7137f79777970a54735; path=/
Set-Cookie: DYNSRV=s0; path=/
_*X-Cache: MISS*_
X-Served-By: Server 203
Regards
--
Bernard FRIT
More information about the varnish-misc
mailing list