You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Jörg Heinicke (JIRA)" <ji...@apache.org> on 2007/01/05 01:00:27 UTC
[jira] Closed: (COCOON-476) [PATCH] No-cache enhancement for
ResourceReader component
[ https://issues.apache.org/jira/browse/COCOON-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jörg Heinicke closed COCOON-476.
--------------------------------
Resolution: Fixed
> [PATCH] No-cache enhancement for ResourceReader component
> ---------------------------------------------------------
>
> Key: COCOON-476
> URL: https://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
>
>
> 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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira