[Varnish] #122: Varnish caches wrong resources
Varnish
varnish-bugs at projects.linpro.no
Thu Jun 28 20:23:33 CEST 2007
#122: Varnish caches wrong resources
----------------------+-----------------------------------------------------
Reporter: RuddO | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone: Varnish 1.0.4
Component: varnishd | Version: trunk
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
The first times I do this:
wget http://rudd-o.com/ -S
I get this:
Resolviendo rudd-o.com... 205.134.246.207
Conectando a rudd-o.com|205.134.246.207|:80... conectado.
Petición HTTP enviada, esperando respuesta...
HTTP/1.1 200 OK
Date: Thu, 28 Jun 2007 18:12:53 GMT
Server: Apache/2.0.59 (CentOS)
X-Powered-By: PHP/5.1.6
X-Pingback: http://rudd-o.com/xmlrpc.php
Content-Type: text/html; charset=utf-8
Connection: Close
Longitud: no especificado [text/html]
That means it's working fine because rudd-o.com/index.php does not
generate any caching headers such as ETag or Last-Modified. The problem
is, after a while, and completely inexplicably, Varnish starts caching it:
rudd-o at gabriela:~/tmp$ wget -S http://rudd-o.com -O /dev/null
--13:17:55-- http://rudd-o.com/
=> `/dev/null'
Resolviendo rudd-o.com... 205.134.246.207
Conectando a rudd-o.com|205.134.246.207|:80... conectado.
Petición HTTP enviada, esperando respuesta...
HTTP/1.1 200 OK
Date: Thu, 28 Jun 2007 18:18:10 GMT
Server: Apache/2.0.59 (CentOS)
X-Powered-By: PHP/5.1.6
X-Pingback: http://rudd-o.com/xmlrpc.php
Content-Type: text/html; charset=utf-8
Content-Length: 42796
X-Varnish: 286466621
Via: 1.1 varnish
Age: 1
Connection: Keep-Alive
Once I did this, nothing I so (such as adding the Pragma: no-cache header)
works. Nothing. I can't get that object uncached.
That object should not be cached. Help me fix this issue.
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/122>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list