On Tue, Apr 15, 2008 at 3:55 PM, Tom Jackson <[EMAIL PROTECTED]> wrote:
>  So the question is how to handle static files. One idea is to check if
>  compression is enabled, if so, check if a compressed file exists
>  (file.ext.gz), use the uncompressed file to figure out the content type, and
>  return the compressed file (assuming the client sends the correct headers).
>
>  tom jackson

That's pretty much how Apache mod_gzip handles it.

It also has an option to create the gzip static file if it doesn't
exist or is out of date. That requires a stat() but you're already
checking for file existence anyway so it's not too big a deal (and is
optional).

Mark.

-- 
Mark Aufflick
 contact info at http://mark.aufflick.com/about/contact


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to