On Friday, May 4, 2012 7:20:40 AM UTC-4, nav010 wrote:
>
> It would be great if you can show by an example. I tried putting 
> response.headers['Cache-Control'] = "max-age=2592000" in layout.html but 
> Cache Control was not changed.
>

You don't have to set it in layout.html -- you can set it in a model file 
(if you want it to apply to every request) or controller.  Anyway, can you 
show your code? Did you put it inside the template delimiters: {{response.
headers['Cache-Control'] = "max-age=2592000"}}? Are you sure the header 
isn't being set in the response (use the browser developer tools to check 
the response header)?

Anthony

Reply via email to