forget an object in vcl_fetch

Tollef Fog Heen tfheen at redpill-linpro.com
Fri Nov 27 09:53:54 CET 2009


]] David Birdsong 

| > sub vcl_fetch {
| >  if (!beresp.X-Super-Hot-File) {
| >    unset obj.cacheable;
| >  }
| > }
|
| ok, i tried this and was not allowed to modify this attribute.

You can set it to true or false, but you can't unset it.

| just out of curiosity i tried 'pass' instead but that also caused disk
| hits.  is there anyway to completely pass traffic through without
| varnish storing it?

You can pipe it, but then you end up closing the connection afterwards.

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73



More information about the varnish-misc mailing list