Antwort: [Mod_gzip] Please describe...

mod_gzip@lists.over.net mod_gzip@lists.over.net
Wed, 2 Oct 2002 20:53:18 +0200


Hallo Berthold,


> Ok, I have a file named "log.js" which is static.
> I compressed it to "log.js.gz"
> Everything works god except that I have to change
> the URI in the browser to get that file to "log.js.gz".
> Is there a way to get that precompressed file via the original URI
"log.js"?
Of course not. You wouldn't need mod_gzip for that. ;-)

The way to allow mod_gzip to _conditionally_ serve one of
these two files when requested for "log.js" is to activate
the negotiation feature built into mod_gzip, by setting

     mod_gzip_can_negotiate        Yes



And from 1.3.19.2a on, mod_gzip will automatically detect

a stale version of "log.js.gz" and in this case serve

"log.js" in uncompressed form.



If you additionally set

     mod_gzip_update_static        yes

then mod_gzip would even automatically overwrite "log.js.gz"
with a fresh compressed version of "log.js" if it detects
that the last modification date of "log.js" is newer than
the one of "log.js.gz".
Use this with care, because having mod_gzip overwrite files
inside your document tree might be a thing that needs sur-
prising prerequisits, like write access to the ".gz" file ...

Viele Grüße,

      Michael