cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14048] New: - No-cache enhancement for ResourceReader component
Date Tue, 29 Oct 2002 12:13:15 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14048>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14048

No-cache enhancement for ResourceReader component

           Summary: No-cache enhancement for ResourceReader component
           Product: Cocoon 2
           Version: 2.0.3
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: andi@andi.ch


This small patch enables the possibility to prevent IE from caching resources:

Sitemap:

<map:read src="images/background.gif"/>
   <map:parameter name="expires" value="0"/>
</map:read>


In the original code, it wasn't possible to set the expires value to 0.
Therefore it wasn't possible to prevent IE to cache specific resources.

Can someone apply this small patch? Thx.


Andi


diff 
ResourceReader.java /home/xmlcocoon2/src/java/org/apache/cocoon/reading/Resourc
eReader.java 
163,166d162
<       if (expires == 0) {
<             response.addHeader("Vary", "Host");
<         }
<

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message