Problems getting Varnish to cache certain things

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Jun 15 11:49:59 CEST 2009


In message <20090615092509.GA91218 at fupp.net>, Anders Nordby writes:

>Is it possible to clear "hit for pass" objects without restarting? Is
>there any TTL for "hit for pass" objects? I'd like a short "hit for
>pass" timeout value, I think.

You can set the TTL in vcl_fetch{}.  The default is the default_ttl
parameter, (2 minutes ?)

>If an object is passed in vcl_fetch due to being !beresp.cacheable, it's
>nice to have the object cached one you have removed the obstacles to
>have that URL cached. After all, we often do want to cache even though
>web developers do mistakes.

The reason for the hit-for-pass, is to avoid serializing clients on
objects that cannot be cached.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



More information about the varnish-misc mailing list