This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

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

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:


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: (cached) (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 :

Cheers and thanks for the heads-up !

Wednesday 17 March 2010 12:21:08 am

Thanks for the answer.
Issue added here:

Wednesday 17 March 2010 8:59:40 am

Issue added here:

cool, thanks !

Wednesday 29 June 2011 1:50:39 pm


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


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

36 542 Users on board!

Forums menu

Proudly Developed with from