AW: caching everything incl. 403?
Sascha Ottolski
ottolski at web.de
Sun Dec 21 14:41:28 CET 2008
Am Sonntag 21 Dezember 2008 14:18:56 schrieb Neil.Scholten at scoyo.com:
> Hi,
>
> It doesn't work :/
>
> sub vcl_fetch {
>
> /* Set NON-200 caching */
> if (obj.status != 200)
> {
> set obj.cacheable = "1";
> set obj.ttl = 300s;
> }
> [...]
>
> Error-Message:
>
> Expected ID got '"1"'
> (program line 290), at
> (/etc/varnish/default.vcl Line 20 Pos 37)
> set obj.cacheable = "1";
> ------------------------------------###-
>
> VCL compilation failed
>
> Any idea?
you should probably omit the quotes?
set obj.cacheable = 1;
Cheers, Sascha
More information about the varnish-misc
mailing list