Forums / Setup & design / Custom HTTP headers not working for non-default layout
Gabriel Finkelstein
Thursday 11 March 2010 1:56:53 pm
I have the following settings in site.ini:
[HTTPHeaderSettings] CustomHeader=enabled Cache-Control[] Cache-Control[/]= Expires[] Expires[/]=600 Pragma[] Pragma[/]=
And caching works fine when using the default layout, but when accessing trough layout/set/xxxx the response always returns a no-cache header:
Cache-Control: no-cache, must-revalidate Pragma: no-cache
This problem seems to also affect the community website. Example:
http://share.ez.no/blogs/ez/ez-publish-4.3.0beta2-released (cached)
http://share.ez.no/layout/set/print/blogs/ez/ez-publish-4.3.0beta2-released (not cached)
Is this a bug or am I missing something?
Nicolas Pastorino
Tuesday 16 March 2010 8:17:39 am
Hi Gabriel,
This pretty much sounds like a bug to me. You may want to report it there : http://issues.ez.no/Exponential
Cheers and thanks for the heads-up !
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye
Tuesday 16 March 2010 4:21:08 pm
Thanks for the answer.Issue added here: http://issues.ez.no/IssueView.php?Id=16453
Wednesday 17 March 2010 12:59:40 am
Issue added here: http://issues.ez.no/IssueView.php?Id=16453
cool, thanks !
Fredrik Ardmar
Wednesday 29 June 2011 4:50:39 am
Hi
I know this is an old ticket and you probably solved it already.
If you want to get around this you just need to add the complete URL in the [HTTPHeaderSettings].
Something similar to:
Cache-Control[/layout/set/anything]=public, must-revalidate, max-age=10801
Then you just add another entry for the "normal" layout.
Over and out
http://www.areadigital.org Custom google maps with eZ Publish http://www.meresverige.dk http://dsbfirst.meresverige.dk