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">
.....
.....

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]

Reply via email to