how can I make varnish to just cache but don't deliver?

Tollef Fog Heen tfheen at varnish-software.com
Tue Jul 6 14:29:00 CEST 2010


]] Pahud 

Hi,

| OK I think this is because 'error' is not allowed in vcl_deliver.

Given that the message from VCC is:

| Message from VCC-compiler:
| Variable 'obj.http.X-Cache-Only' not accessible in method 'vcl_fetch'.
| At: (input Line 106 Pos 21)
|                 set obj.http.X-Cache-Only = "true";
| --------------------#####################----------

Why do you think the problem is in vcl_deliver?

You want to use beresp rather than obj in vcl_fetch.

Regards,
-- 
Tollef Fog Heen
Varnish Software
t: +47 21 54 41 73




More information about the varnish-misc mailing list