Cocoon 2.2 returns the Last-Modified HTTP header only after an initial request on a caching pipeline but not on the first request. [1] shows the pipeline is used for testing and [2] the HTTP requests and responses.

Does somebody know the reason for this behavior? Is it a bug or as designed?

Thanks, Alex

[1]
<map:pipeline type="caching">
        <map:match pattern="cachingWithSubpipeline">
                <map:generate src="cocoon://cachingSub"/>
                <map:serialize type="xhtml"/>
        </map:match>
        <map:match pattern="cachingSub">
                <map:generate src="welcome/welcome.xml"/>
                <map:transform src="welcome/welcome.xslt"/>
                <map:serialize type="xml"/>
        </map:match>
</map:pipeline>

[2]
http://localhost:8888/cocoonTest/cachingWithSubpipeline (1st request)

GET /cocoonTest/cachingWithSubpipeline HTTP/1.1
Host: localhost:8888
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: 1.9.1.4) Gecko/20091016 Firefox/3.5.4
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.7,de-at;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 200 OK
X-Cocoon-Version: 2.2.1-SNAPSHOT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Server: Jetty(6.1.14)
----------------------------------------------------------
http://localhost:8888/cocoonTest/cachingWithSubpipeline (2nd request)

GET /cocoonTest/cachingWithSubpipeline HTTP/1.1
Host: localhost:8888
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: 1.9.1.4) Gecko/20091016 Firefox/3.5.4
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.7,de-at;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Cache-Control: max-age=0

HTTP/1.x 200 OK
X-Cocoon-Version: 2.2.1-SNAPSHOT
Content-Type: text/html; charset=utf-8
Last-Modified: Mon, 02 Nov 2009 16:55:01 GMT
Content-Length: 355
Server: Jetty(6.1.14)
----------------------------------------------------------
http://localhost:8888/cocoonTest/cachingWithSubpipeline (3rd request)

GET /cocoonTest/cachingWithSubpipeline HTTP/1.1
Host: localhost:8888
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv: 1.9.1.4) Gecko/20091016 Firefox/3.5.4
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.7,de-at;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
If-Modified-Since: Mon, 02 Nov 2009 16:55:01 GMT
Cache-Control: max-age=0

HTTP/1.x 304 Not Modified
X-Cocoon-Version: 2.2.1-SNAPSHOT
Last-Modified: Mon, 02 Nov 2009 16:55:01 GMT
Server: Jetty(6.1.14)
----------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to