Forums / Setup & design / Setup [HTTPHeaderSettings]
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-ControlHeaderList[]=Pragma
Cache-Control[]Cache-Control[/]=max-age=60, must-revalidate
Pragma[] Pragma[/module1]=no-cache;2 Pragma[/module2]=no-cache;2Pragma[/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
Tuesday 26 December 2006 3:43:32 am
Hi , finally i do that :
HeaderList[] HeaderList[]=Cache-Control HeaderList[]=PragmaHeaderList[]=Expires
Cache-Control[] Cache-Control[/]=max-age=60 Cache-Control[/module1]=no-cache, no-store Cache-Control[/module2]=no-cache, no-storeCache-Control[/module3]=no-cache, no-store
Pragma[] Pragma[/]=;5;0 Pragma[/module1]=no-cache;5 Pragma[/module2]=no-cache;5Pragma[/module3]=no-cache;5
Expires[]
Thanx for your answer
Wednesday 07 February 2007 4:08:55 am
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.