Jann Forrer wrote:
Andrew Golightly wrote:
Jann Forrer wrote:
I think you should check your browser cache settings to always make
a new request .
I faced the similar problem of caching. we tried many things as
putting http meta tags
on the page2xhtml.xsl but no result. finally we had to set the
browser cache not to cache the pages
that solved the issue.
There is also a cocoon action called
org.apache.cocoon.acting.HttpCacheAction
which is used to add Headers to the http response.
I modified this class in order to test my apache setup wich includes
mod_cache.
In your case, you can try to set the response Header as follows:
response.setHeader("Cache-Control", "no-cache");
Hi Jann.
Which file do I set this in? I'm not using Apache, just Jetty - Lenya
straight outa the box. You mean editing
externals/cocoon_2_1_x/src/java/org/apache/cocoon/acting/HttpCacheAction.java
? Isn't there a config file I could edit, instead of the source code?
I am not sure but i didn't found such a config file. I simply made a
new action based on cocoon's HttpCacheAction and added that action to
lenya's sitemap.xmap:
.....
.....
<map:match pattern="**">
<map:act type="httpcacheaction"/>
<map:act type="authorizer">
.....
.....
So I tried this by editing the sitemap.xmap for my publication:
<map:pipelines>
....
<map:pipeline>
<map:match pattern="**">
<map:act type="httpcacheaction"/>
</map:match>
</map:pipeline>
...
</map:pipelines>
But I get an error coming back to me saying:
"Type 'httpcacheaction' is not defined for 'act' at"
I'm using lenya 1.4.
I then searched on the word 'cache' in this file, and the other elements
I found were:
1)
<map:component-configurations>
<global-variables>
<cache-dir>work/cache</cache-dir>
</global-variables>
</map:component-configurations>
2)
<map:select type="resource-exists">
<!-- Read from cache -->
<!-- If configured within Apache then mod_lenya will
nevertheless read from cache -->
<map:when
test="{global:cache-dir}/{../../1}/{../../2}.htmlDISABLED">
<map:read
src="{global:cache-dir}/{../../1}/{../../2}.html" mime-type="text/html"/>
</map:when>
<!-- Write to cache and serialize -->
<map:otherwise>
3)
<!-- Write to cache for requests from live area -->
<map:select type="parameter">
<map:parameter name="parameter-selector-test"
value="{../../1}"/>
<map:when test="live">
Dunno. Where did I go wrong?
Andrew
BTW, I did only test it in lenya-1.2.X.
HTH
Jann
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]