[ http://issues.apache.org/jira/browse/COCOON-620?page=all ]
Helma van der Linden closed COCOON-620:
---------------------------------------
Resolution: Fixed
> [PATCH] Cached resources don't have Expires-Header
> --------------------------------------------------
>
> Key: COCOON-620
> URL: http://issues.apache.org/jira/browse/COCOON-620
> Project: Cocoon
> Type: Bug
> Components: * Cocoon Core
> Versions: 2.1.8-dev (Current SVN)
> Environment: Operating System: Linux
> Platform: PC
> Reporter: Philipp Matthias Hahn
> Assignee: Cocoon Developers Team
> Attachments: expires.patch
>
> My sitemap.xmap contains the following lines:
> <map:match pattern="image/**.png">
> <map:read src="resources/images/{1}.png" mime-type="image/png">
> <map:parameter name="expires" value="86400000"/><!--24*60*60*1000-->
> </map:read>
> </map:match>
> If I request a resource matching that, I do get the following after a fresh
> restart:
> $ HEAD http://walker:8180/image/ci/l-location-bg.png
> 200 OK
> Connection: close
> Date: Wed, 12 Mar 2003 16:09:31 GMT
> Accept-Ranges: none
> Server: Apache Coyote/1.0
> Content-Length: 176
> Content-Type: image/png
> Expires: Thu, 13 Mar 2003 16:09:31 GMT
> Client-Date: Wed, 12 Mar 2003 16:09:34 GMT
> Client-Response-Num: 1
> X-Cocoon-Version: 2.0.5-dev
> If I repeat the same request, I get the same answer _without_ the "Expires"
> and
> "Accept-Ranged" headers, but with a "Last-Modified" header:
> $ HEAD http://walker:8180/image/ci/l-location-bg.png
> 200 OK
> Connection: close
> Date: Wed, 12 Mar 2003 16:09:35 GMT
> Server: Apache Coyote/1.0
> Content-Length: 176
> Content-Type: image/png
> Last-Modified: Wed, 08 Jan 2003 12:24:06 GMT
> Client-Date: Wed, 12 Mar 2003 16:09:38 GMT
> Client-Response-Num: 1
> X-Cocoon-Version: 2.0.5-dev
--
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