[ 
http://issues.apache.org/jira/browse/COCOON-476?page=comments#action_12413722 ] 

Antonio Gallardo commented on COCOON-476:
-----------------------------------------

This issue was filled for cocoon 2.0.3. In the mean time the patch was added by 
closing COCOON-1424.
Above Simone comment is valid and seems the solution to his concern is already 
in COCOON-1266.

Should we close this issue?

> [PATCH] No-cache enhancement for ResourceReader component
> ---------------------------------------------------------
>
>          Key: COCOON-476
>          URL: http://issues.apache.org/jira/browse/COCOON-476
>      Project: Cocoon
>         Type: Improvement

>   Components: * Cocoon Core
>     Versions: 2.0.3
>  Environment: Operating System: Linux
> Platform: Other
>     Reporter: andi
>     Assignee: Cocoon Developers Team
>     Priority: Minor

>
> 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

Reply via email to