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 2003/03/12 17:27:32 UTC

DO NOT REPLY [Bug 17924] New: - Cached resources don't have Expires-Header

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=17924>.
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=17924

Cached resources don't have Expires-Header

           Summary: Cached resources don't have Expires-Header
           Product: Cocoon 2
           Version: Current CVS
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: pmhahn@titan.lahn.de


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