Now got it to work with mod_deflate.

The problem was that my apache 2.2.4 installation identifies (through mime.types) files with ending .js as "application/x-javascript".

The compression ratio is documented in the deflate.log as described in the apach2 mod_deflate manpage:

GET /nra/app/script/nra.js HTTP/1.1" 226527/1157427 (19%)

So the compression ratio is 19% which means that the traffic caused by loading the file is 19% of the original file.



asaris schrieb:
You can check http header by firebug.

Check http response header under NET
Date    Fri, 15 Jun 2007 09:11:58 GMT
Server  Apache/2.2.3 (Ubuntu) mod_mono/1.2.1 PHP/5.2.3
X-Powered-By    PHP/5.2.3
Vary    Accept-Encoding
Content-Encoding        gzip
Content-Length  7266
Keep-Alive      timeout=15, max=100
Connection      Keep-Alive
Content-Type    text/html; charset=UTF-8


"Vary: Accept-Encoding" & "Content-Encoding:gzip" is what we need.

You can log information about compression (what is compressed, what is not, compression rate) by apache.

asaris

Dietrich Streifert wrote:
Thank you for the snippet.

How did you verify that compression is active and working?


asaris schrieb:
I tried this on my Ubuntu workstation a minute ago.

cd /etc/apache2/mods-enabled
ln -s ../mods-available/deflate.load deflate.load
ln -s ../mods-available/deflate.conf deflate.conf

and put a line in vhost directory section

AddOutputFilterByType DEFLATE text/html text/plain text/xml image/svg+xml text/css text/javascript

That's all.

asaris

Dietrich Streifert wrote:

asaris schrieb:
We use mod_deflate at work to compress on the fly.

http://httpd.apache.org/docs/2.2/mod/mod_deflate.html

asaris


It would be nice If you can share your configuration with us.

Please send us the relevant configuration snippets if possible.

Thank you.

--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner


------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner


------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
------------------------------------------------------------------------

_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

--
Mit freundlichen Grüßen
Dietrich Streifert
--
Visionet GmbH
Firmensitz: Am Weichselgarten 7, 91058 Erlangen
Registergericht: Handelsregister Fürth, HRB 6573
Geschäftsführer: Stefan Lindner



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to