Strange caching behavior
Rodrigo Benzaquen
rodrigo at mercadolibre.com
Thu Jun 25 16:55:21 CEST 2009
Hi guys, today we saw that if our backend servers doesn´t add an HTTP
CACHE-CONTROL Varnish cache the URL for 30s.
We have tested the same using Netcache and we noticed that Netcache doesn´t
cache the object.
Do you guys know how to modify Varnish to don´t cache URLs or Objects that
doesn´t have CACHE-CONTROL?
Example: as you can see our Backend Server is not sending cache-control:
no-cache and Varnish is caching the object for 30s.
VARNISH
(Request-Line)
GET /jm/XXXXXX?go=trans HTTP/1.1
Accept
image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, application/x-shockwave-flash,
application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
*/*
Accept-Encoding
gzip, deflate
Accept-Language
es-ar
Connection
Keep-Alive
Cookie
poison_cookie=313537500; orguseridp=88011902
Host
www.XXX.XX
Referer
http://XXX.XXX.XX
UA-CPU
x86
User-Agent
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR
2.0.50727; .NET CLR 3.0.04506)
(Status-Line)
HTTP/1.1 302 Found
Age
28
Connection
keep-alive
Content-Length
619
Date
Thu, 25 Jun 2009 12:38:03 GMT
Location
https://www.xxxx.xxx?go=trans&redirected=Y&setCKorgpago=89482244&setCK__utma
=1.3637389798933187000.1242304103.1242310216.1242349919.3&setCKPMS78987160=P
MS78987160&setCKpmsword=ITEM&setCKtr_cookie=187.13.29.68&setCKorgnickp=SELL-
SHOP&setCKpmsctx=*****SMEMORIA+DDR400%7CS1+GB+DDR+400%7CS512+DDR+400%7C&setC
Korgpms=305868&setCKorghash=062508-S4EZVST0K3VSOVBLL86MY7JOG4K5BU-89482244&s
etCKorguseridp=89482244&setCKorguserid=h749Th7ZZTT&setCKpoison_cookie=313426
119&setCK__utmz=1.1242304103.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(non
e)&setCKoasLoConoce=Y
Server
Resin/3.0.18
via
1.1 Varnish (yblvarnish4)
X-Varnish
1935462643 1935458287
Thanks
Rodrigo.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090625/08a5ccd4/attachment-0002.html>
More information about the varnish-misc
mailing list