[Catalyst] If-Modified-Since Plugin::Static Engine::Apache

Andrew Bramble andrew.bramble at omnilab.com.au
Fri May 26 17:24:39 CEST 2006


Hello, 

Has anyone else experienced problems with  $c->serve_static_file and Apache2/ 
mod_perl ? 

I have discovered that when running under modperl2 the initial request 
succeeds but a subsequent request for the same file (with header specifying 
'Is-Modified-Since' ) generates 500 internal error from apache in situations 
where Plugin::Static has set response status to 304. Nothing enlightening 
appears in the debug output, This does not occur when running with the 
catalyst http server. 

First observed this behavior on SuSE9.3 Professional , re-tested on 
opensuse10.0 (see versions below)

Have attached a tiny application that reproduces the problem. a request 
for /plugin/document.txt will serve up root/document.txt , a subsequent 
refresh of that page returns 500 error from apache. Also attached a 
conversation with apache via telnet.

$Catalyst::VERSION = 5.6902

apache2-prefork-2.0.54-10
apache2-mod_perl-2.0.1-4
perl-5.8.7-5.3








-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMSTest.tar.bz2
Type: application/x-tbz
Size: 5186 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060527/f804d73b/attachment.bin 
-------------- next part --------------
GET /download HTTP/1.1
Host: foo.omnilab.com.au
If-Modified-Since: Fri, 26 May 2006 10:25:05 GMT

Server
GET /plugin/document.txt HTTP/1.1
Host: wizard
If-Modified-Since: Fri, 26 May 2006 12:16:01 GMT


HEAD /download/document.txt HTTP/1.1
Host: wizard


Apache
GET /plugin/document.txt HTTP/1.1
Host: wizard
If-Modified-Since: Fri, 26 May 2006 12:16:01 GMT

HEAD /plugin/document.txt HTTP/1.1
Host: wizard




More information about the Catalyst mailing list