honoring browser reload request

Darryl Dixon - Winterhouse Consulting darryl.dixon at winterhouseconsulting.com
Tue Jun 24 23:12:33 CEST 2008


> in vcl_recv, we shortcut and send such requests straight to lookup:
>
>     /* Honour Cache-Control: and Pragma: ... */
>     if (req.http.Pragma ~ ".*no-cache.*" || req.http.Cache-Control ~
> ".*no-cache.*") {
>         lookup;
>     }
>
> ...and then in vcl_recv we do similar to you:

Bother, of course I meant: ..and then in *vcl_hit* we do similar to you... :)

>     /* Honour Cache-Control: and Pragma: ... */
>     if (req.http.Pragma ~ ".*no-cache.*" || req.http.Cache-Control ~
> ".*no-cache.*") {
>         set obj.ttl = 0s;
>         pass;
>     }
>

regards,
Darryl Dixon
Winterhouse Consulting Ltd
http://www.winterhouseconsulting.com



More information about the varnish-misc mailing list