cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Rubin <>
Subject RE: Enabling client browser to cache content from cocoon
Date Fri, 30 Aug 2002 14:39:01 GMT
Now I found that the browser's IE6 cache on this dyanimcally generated 
javascript only works when I set it to "never", it does not work on 
"Automatically", despite the file is there with the temporary files.

For other "real" files I have in the <HEAD> section of the main page 
"Automatically" works fine, the browser does not ask for those.

I can only think that what is wrong is the way I am serializing the 

The pipeline:
<map:match pattern="resources/menu.js*">
  <map:generate type="JMenuGenerator"/>
  <map:transform src="stylesheets/html/menu.js.xsl"/>
  <map:serialize type="js"/>

the serializer:
<map:serializer logger="sitemap.serializer.js" 
mime-type="text/javascript" name="js" pool-grow="4" pool-max="32" 
pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">


> ------------------------------------------------------------------------
> Subject:
> RE: Enabling client browser to cache content from cocoon
> From:
> "Jan Willem Penterman" <>
> Date:
> Fri, 30 Aug 2002 10:59:44 +0200
> To:
> <>
> JavaScripts are automatically cached when you place them, or a reference
> to them within the <HEAD> tag. For IE clients this will only work when
> the 'caching parameter' (Tools -> Internet Options -> Temporary Internet
> -> Settings -> check for...) is set to "Automatically". This is NOT what
> you want during development btw, but the default setting on an IE setup.
> JW
>>-----Original Message-----
>>From: Ivan Rubin [] 
>>Sent: donderdag 29 augustus 2002 20:31
>>Subject: Enabling client browser to cache content from cocoon
>>I have a pipeline that generates a javascript document. It is 
>>  and requested by the client from other dynamically-generated html 
>>It works fine, but I want to cache the javascript in the 
>>client browser 
>>and I can't find the way to do it.
>>I tried to set the Expires http header at the beggining of 
>>the pipeline 
>>with the HttpHeader action but no results.
>>Any information will be very useful as I couldn't find any 
>>on the documentation, faqs nor mail-archives.
>>Ivan Rubin Ayma

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message