httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Lewis <>
Subject Re: apache module or CGI
Date Mon, 26 Mar 2007 16:14:47 GMT

> Sam Carleton wrote:
>> On 3/26/07, Issac Goldstand <> wrote:
>>> If the images are already on the server, and needed for the response
>>> immediately, you'd need to do it inline, but you could still make life
>>> easier on yourself (somewhat) by caching the reduced images to avoid
>>> reprocessing.
>>> I could give more specific advice if you could share a bit more about
>>> what you're trying to accomplish in general.
Another alternative is to cause the image links to point to a directory, 
and use

ErrorDocument 404 /cgi-bin/

Which CGI generates the image and dumps it to the browser as well as 
storing it.  Then, each subsequent image request comes from the static 
file.  If you need them to be cleaned up once in a while and 
regenerated, just create a cron job with "find" to locate the "old" 
thumbnails and delete them, which causes the 404 and regenerates the images.

Joseph Lewis <>
"Divide the fire, and you will sooner put it out." - Publius Syrus

View raw message