eZ Community » Forums » Setup & design » Custom HTTP headers not working for...
expandshrink

Custom HTTP headers not working for non-default layout

Custom HTTP headers not working for non-default layout

Thursday 11 March 2010 10:56:53 pm - 4 replies

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/pri...gs/ez/ez-publish-4.3.0beta2-released (not cached)

Is this a bug or am I missing something?

Tuesday 16 March 2010 4:17:39 pm

Hi Gabriel,

This pretty much sounds like a bug to me. You may want to report it there : http://issues.ez.no/ezpublish

Cheers and thanks for the heads-up !

Wednesday 17 March 2010 12:21:08 am

Thanks for the answer.
Issue added here: http://issues.ez.no/IssueView.php?Id=16453

Wednesday 17 March 2010 8:59:40 am

Issue added here: http://issues.ez.no/IssueView.php?Id=16453

cool, thanks !

Wednesday 29 June 2011 1:50:39 pm

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

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from