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.

Thanks in advance,

On Fri, May 4, 2012 at 2:44 PM, Niphlod <[email protected]> wrote:

> You can add all the header that you want using response.header ....
> it's a python dictionary, so you can set those in the usual way, e.g.
> response.headers['myheader'] = 'thevalue'
>
> Il giorno venerdì 4 maggio 2012 09:39:59 UTC+2, nav010 ha scritto:
>
>> Hey All,
>>
>> How can I add expire header to my web2py app to speed up the webpage when
>> loading.
>>
>> Any help would be highly appreciated.
>>
>> Thanks,
>>
>

Reply via email to