[Mod_gzip] simple question
Matt Manfredonia
mod_gzip@lists.over.net
Wed, 13 Nov 2002 08:31:06 -0500
Thanks for the response, I shoulda double checked the docs before
writing...I am still not clear though..
Basically what I want to get is to compress .js files that only have .gz
files to match.
So from this config:
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_can_negotiate Yes
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
mod_gzip_update_static No
...
mod_gzip_item_include file \.html$
mod_gzip_item_exclude file \.js
...
</IfModule>
If I am excluding .js extension but set can_negotiate to true, and there are
the following files:
file1.js, file1.js.gz, file2.js
And I request file1.js and file2.js will I get only file1.js.gz as a
compressed file? Or will the exclude cancel that?
Hope that make sense, I am looking to compress a given extension only is
there is a static version.
Let me know if this is the default case and I am not understanding the docs
Thanks again
--matt
-----Original Message-----
From: Mark Hughes [mailto:mark@cyki.com]
Sent: Tuesday, November 12, 2002 6:37 PM
To: 'mod_gzip@lists.over.net'
Subject: Re: [Mod_gzip] simple question
>From the excellent documentation at :
http://www.schroepl.net/projekte/mod_gzip/config.htm
# let mod_gzip perform 'partial content negotiation'?
mod_gzip_can_negotiate Yes
# (if this option is active and a static file is to be served in com-
# pressed for, then mod_gzip will look for a static precompressed
# version of this file with a defined additional extension - see next
# directive - which would be delivered with priority. This would allow
# for avoiding to repeatedly compress the same static file and thus
# saving CPU time.
# No dynamic caching of this file is provided; currently the user
# himself is responsible for creating and updating the precompressed
# file's content.
# From version 1.3.19.2a mod_gzip automatically recognizes whether
# a statically precompressed file is older than its uncompressed
# original and in this case will serve the content of the original
# file in uncompressed form - as to rather serve correct data than
# outdated ones ...)
Cheers.
On Tue, 12 Nov 2002, Matt Manfredonia wrote:
> Does this plugin allow for the serving of statically compressed files
>
> I am interested in (for a few files) compressing(gzip) the files myself to
> have two files (files.htm, file.htm.gz). Since the page is requested a
lot,
> this would reduce server processing overhead of compressing the output
> stream.
>
> Just wanted to know if it was possible, simliliar to the static plugin:
> http://www.mozilla.org/projects/apache/gzip/get_src.html
>
> Thanks
>
> --matt
>
> _______________________________________________
> mod_gzip mailing list
> mod_gzip@lists.over.net
> http://lists.over.net/mailman/listinfo/mod_gzip
>
_______________________________________________
mod_gzip mailing list
mod_gzip@lists.over.net
http://lists.over.net/mailman/listinfo/mod_gzip