You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Alfred Nathaniel (JIRA)" <ji...@apache.org> on 2006/07/21 15:16:15 UTC
[jira] Closed: (COCOON-476) [PATCH] No-cache enhancement for
ResourceReader component
[ http://issues.apache.org/jira/browse/COCOON-476?page=all ]
Alfred Nathaniel closed COCOON-476.
-----------------------------------
Fix Version/s: 2.1.10-dev (current SVN)
Resolution: Won't Fix
Setting "Vary: Host" has a nasty effect on serving ZIP files through Cocoon. IE+WinZIP barf when this header is present, and automatic opening of ZIP files does not work. (Saving file and disk and opening with WinZIP from there works.)
In 2.1.10-dev there is a already fix to replace "Vary: Host" by "Expires: 0".
http://svn.apache.org/viewvc?view=rev&revision=410112
To work around the ZIP problem on earlier Cocoon releases, add an "expires" parameter (in milliseconds):
<map:read src="foo.zip">
<map:parameter name="expires" value="60000"/>
</map:read>
> [PATCH] No-cache enhancement for ResourceReader component
> ---------------------------------------------------------
>
> Key: COCOON-476
> URL: http://issues.apache.org/jira/browse/COCOON-476
> Project: Cocoon
> Issue Type: Improvement
> Components: * Cocoon Core
> Affects Versions: 2.0.3
> Environment: Operating System: Linux
> Platform: Other
> Reporter: andi
> Assigned To: Cocoon Developers Team
> Priority: Minor
> Fix For: 2.1.10-dev (current SVN)
>
>
> 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");
> < }
> <
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira