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

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

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">
  <buffer-size>1024</buffer-size>
  <encoding>ISO-8859-1</encoding>
  <omit-xml-declaration>true</omit-xml-declaration>
</map:serializer>

Thanks,


> ------------------------------------------------------------------------
> 
> Subject:
> RE: Enabling client browser to cache content from cocoon
> From:
> "Jan Willem Penterman" <[EMAIL PROTECTED]>
> Date:
> Fri, 30 Aug 2002 10:59:44 +0200
> To:
> <[EMAIL PROTECTED]>
> 
> 
> 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 [mailto:[EMAIL PROTECTED]] 
>>Sent: donderdag 29 augustus 2002 20:31
>>To: [EMAIL PROTECTED]
>>Subject: Enabling client browser to cache content from cocoon
>>
>>
>>Hello,
>>
>>I have a pipeline that generates a javascript document. It is 
>>referenced 
>>  and requested by the client from other dynamically-generated html 
>>documents.
>>
>>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 
>>information 
>>on the documentation, faqs nor mail-archives.
>>
>>Thanks,
>>
>>Ivan Rubin Ayma
>>
>>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to