You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/10/29 13:13:15 UTC
DO NOT REPLY [Bug 14048] New: -
No-cache enhancement for ResourceReader component
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