Am Sonntag 21 Dezember 2008 14:18:56 schrieb [email protected]:
> 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
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to