[Catalyst] Strange static/image behaviour
Chisel Wright
chisel at herlpacker.co.uk
Fri May 20 11:28:14 CEST 2005
I don't know where to start looking to track this down, but I'm seeing
strange behaviour when serving static images.
I'm certain it was working, until I did/upgraded "something" recently. I
just can't think what that something is.
I've cleared out my firefox cache, and also tried on a different firefox
on a different machine.
I've got a directory of images:
root/.static/images/:
total 40
-rw-r--r-- 1 chisel chisel 58 May 11 21:04 bg.gif
-rw-r--r-- 1 chisel chisel 223 May 12 18:10 calendar.gif
-rw-r--r-- 1 chisel chisel 2764 May 11 21:04 client_logo.gif
-rw-r--r-- 1 chisel chisel 24167 May 20 08:22 lb.jpg
-rw-r--r-- 1 chisel chisel 2000 May 20 08:20 tootired.jpg
Whenever I try to view these or load pages containing these, the larger
ones appear, but have the last portion of the image missing/truncated.
Smaller images often don't seem to appear at all.
I've installed "Live HTTP Headers", and taking client_logo.gif I'm
seeing:
----------------------------------------------------------
http://ferrari:3000/.static/images/client_logo.gif
GET /.static/images/client_logo.gif HTTP/1.1
Host: ferrari:3000
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.8)
Gecko/20050516 Firefox/1.0.4
Accept: image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://ferrari:3000/
Cookie: session=99c76c8bf285ffb666bbcb35a3f22356
HTTP/1.x 200 OK
Date: Fri, 20 May 2005 09:13:13 GMT
Server: Catalyst/5.20
Cache-Control: max-age=1
Content-Length: 2760
Content-Type: image/gif
Last-Modified: Wed, 11 May 2005 20:04:59 GMT
X-Catalyst: 5.20
----------------------------------------------------------
My initial concern is that the image is 2764 but Content-Length is sent
as 2760.
I've installed Catalyst::Plugin::Compress::Zlib recently but it's NOT in
my use catalyst line:
use Catalyst qw/-Debug Static Session::FastMmap Authentication::CDBI
FillInForm FormValidator/;
[just to be safe I've uninstalled the module, cleared the cache, and
still see the same Content-Length]
Does anyone out there have any idea what I'm missing this time? I can't
think of anything else to try.
I've currently got the following installed:
dev-perl/Catalyst-5.20
dev-perl/Catalyst-Model-CDBI-0.08
dev-perl/Catalyst-Model-CDBI-CRUD-0.02
dev-perl/Catalyst-Model-CDBI-Sweet-0.03
dev-perl/Catalyst-Plugin-Ajax-0.04
dev-perl/Catalyst-Plugin-Authentication-CDBI-0.06
dev-perl/Catalyst-Plugin-Authentication-LDAP-0.01
dev-perl/Catalyst-Plugin-Email-0.04
dev-perl/Catalyst-Plugin-FillInForm-0.05-r1
dev-perl/Catalyst-Plugin-FormValidator-0.02
dev-perl/Catalyst-Plugin-Geography-0.01
dev-perl/Catalyst-Plugin-I18N-0.02
dev-perl/Catalyst-Plugin-Prototype-0.01
dev-perl/Catalyst-Plugin-Session-FastMmap-0.09
dev-perl/Catalyst-Plugin-Static-0.07
dev-perl/Catalyst-Plugin-SubRequest-0.04
dev-perl/Catalyst-Plugin-Textile-0.01
dev-perl/Catalyst-Plugin-XMLRPC-0.02
dev-perl/Catalyst-View-Mason-0.06
dev-perl/Catalyst-View-REST-XML-0.01
dev-perl/Catalyst-View-REST-YAML-0.01
dev-perl/Catalyst-View-TT-0.11
Chisel
--
Chisel Wright
e: chisel at herlpacker.co.uk
w: http://www.herlpacker.co.uk/
More information about the Catalyst
mailing list