SPUG:CGI header question
Brian Hatch
spug at ifokr.org
Thu Jun 19 11:43:48 CDT 2003
> <rant>
> files belong in the *file system*
> data belongs in the *database*
> </rant>
I agree with much of the rest of this comment. Apache is great at
serving files, so why not let it serve the images directly.
> <img src='Photo.pl?PhotoID=14232'>
this should be " instead of ' by the way.
You can have perl include an 'expires' header for your CGI output, and
then browsers will cache it.
print header( -expires => +1d );
sets the result to be valid for 1 day, so browsers shouldn't re-check
the file until tomorrow. Do a 'perldoc CGI' and look for the -expires
option. You can specify dates/times in many different formats.
--
Brian Hatch "There are 10 of us, all of family
Systems and Zathras, each one named Zathras.
Security Engineer Slight differences in how you
http://www.ifokr.org/bri/ pronounce. You are seeing now?"
Every message PGP signed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/spug-list/attachments/20030619/efdb4c00/attachment.bin
More information about the spug-list
mailing list