Thanks David,
What about setting TTL in vcl_fetch
Like,
set obj.http.Cache-Control = "max-age=432000";
set obj.ttl = 5d;
Thanks,
Mahesh.
On Tuesday 13 April 2010 12:05 PM, David Murphy wrote:
Hi Mahesh
obj.* is called beresp.* in vcl_fetch in Varnish 2.1.
Best, David
On 13 Apr 2010, at 08:10, Mahesh Ollalwar wrote:
Hi,
I'm getting below errors in Varnish 2.1 whereas it was working in the
older versions.
Message from VCC-compiler:
Variable 'obj.cacheable' not accessible in method 'vcl_fetch'.
At: (input Line 349 Pos 14)
if (!obj.cacheable) {
-------------#############---
Running VCC-compiler failed, exit 1
Message from VCC-compiler:
Variable 'obj.status' not accessible in method 'vcl_fetch'.
At: (input Line 357 Pos 13)
if (obj.status == 500 || obj.status == 501 || obj.status == 502
|| obj.status == 503 || obj.status == 504 || obj.status == 404){
------------##########------------------------------------------------------------------------------------------------------------------
Running VCC-compiler failed, exit 1
Can anyone help me ?
Thanks,
Mahesh.
_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
---------
David Murphy
Technical Director
Firechaser Limited
78 York Street
London W1H 1DP
0870 735 0800
_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc
|
_______________________________________________
varnish-misc mailing list
[email protected]
http://lists.varnish-cache.org/mailman/listinfo/varnish-misc