<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="-1">Hi,<br>
<br>
Can you guide me how to override the header in vcl_fetch.<br>
<br>
Regards,<br>
Mahesh.<br>
</font><br>
On Monday 22 March 2010 06:29 PM, Tollef Fog Heen wrote:
<blockquote cite="mid:87bpeg5x7e.fsf@qurzaw.linpro.no" type="cite">
<pre wrap="">]] Mahesh Ollalwar
| Is it possible to set obj.ttl to the value getting from a backend
| response header. My application is calculating the TTL value and
| setting a header "upstream-ttl". I'm using below syntax in vcl_fetch
| but it's not working.
No, you need to set it using something which is a number. This will be
possible in a later version.
If you can make the backend just set the Cache control header properly
and then override the header in vcl_fetch, that should do the right
thing.
</pre>
</blockquote>
</body>
</html>