cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Rubin <ia...@mcsla.com.ar>
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 
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" <jw@shapers.nl>
> Date:
> Fri, 30 Aug 2002 10:59:44 +0200
> To:
> <cocoon-users@xml.apache.org>
> 
> 
> 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:iayma@mcsla.com.ar] 
>>Sent: donderdag 29 augustus 2002 20:31
>>To: cocoon-users@xml.apache.org
>>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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message