Setup [HTTPHeaderSettings]

Author Message

Bourelly Frederic

Thursday 21 December 2006 7:26:52 am

Hi,

I would like to setup Http Cache. I need to have an http cache of 1min. I need also to desactivate cache for some modules.

How can i do that in site.ini , block [HTTPHeaderSettings] ?

My file should look like that:

[HTTPHeaderSettings]
CustomHeader=enabled

HeaderList[]
HeaderList[]=Cache-Control
HeaderList[]=Pragma

Cache-Control[]
Cache-Control[/]=max-age=60, must-revalidate

Pragma[]
Pragma[/module1]=no-cache;2
Pragma[/module2]=no-cache;2
Pragma[/module3/view1]=no-cache;2

is it good?

Thanx

Claudia Kosny

Thursday 21 December 2006 10:52:27 am

Hi

This looks good.

One minor thing: To be on the safe side I would add an Cache-Control: no-cache for all the modules where you use Pragma: no-cache.

Claudia

Bourelly Frederic

Tuesday 26 December 2006 3:43:32 am

Hi , finally i do that :

HeaderList[]
HeaderList[]=Cache-Control
HeaderList[]=Pragma
HeaderList[]=Expires

Cache-Control[]
Cache-Control[/]=max-age=60
Cache-Control[/module1]=no-cache, no-store
Cache-Control[/module2]=no-cache, no-store
Cache-Control[/module3]=no-cache, no-store

Pragma[]
Pragma[/]=;5;0
Pragma[/module1]=no-cache;5
Pragma[/module2]=no-cache;5
Pragma[/module3]=no-cache;5

Expires[]

Thanx for your answer

Bourelly Frederic

Wednesday 07 February 2007 4:08:55 am

Hi,

I have a bug when i try to desactivate cache :

Pragma[/xxx]=no-cache;2 -> That works

Pragma[/xxx/zz]=no-cache;2 -> Does not work !

I need that to desactivate cache for a subtree.

any idea ?

thanx.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.