Strange caching behavior

Pablo Garcia Melga malevo at gmail.com
Fri Jun 26 00:14:53 CEST 2009


Rodrigo, You can either set that by VCL with set obj.ttl = 30s (more
powerful and configurable) or in the varnishd command line, with the
-t option to specify which is the default TTL.

Regards, Pablo



On Thu, Jun 25, 2009 at 11:55 AM, Rodrigo
Benzaquen<rodrigo at mercadolibre.com> wrote:
> 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=PMS78987160&setCKpmsword=ITEM&setCKtr_cookie=187.13.29.68&setCKorgnickp=SELL-SHOP&setCKpmsctx=*****SMEMORIA+DDR400%7CS1+GB+DDR+400%7CS512+DDR+400%7C&setCKorgpms=305868&setCKorghash=062508-S4EZVST0K3VSOVBLL86MY7JOG4K5BU-89482244&setCKorguseridp=89482244&setCKorguserid=h749Th7ZZTT&setCKpoison_cookie=313426119&setCK__utmz=1.1242304103.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)&setCKoasLoConoce=Y
>
> Server
>
> Resin/3.0.18
>
> via
>
> 1.1 Varnish (yblvarnish4)
>
> X-Varnish
>
> 1935462643 1935458287
>
>
>
>
>
> Thanks
>
> Rodrigo.
>
>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at projects.linpro.no
> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
>



More information about the varnish-misc mailing list