[horde] compress css.php and javascript.php
Daniel Eckl
daniel.eckl at gmx.de
Wed Nov 19 10:01:46 PST 2003
Hi list!
I'd like to know if someone does know a reason why all pages of horde can be
transmitted gzip-compressed except css.php and javascript.php? I use a quite
actual cvs version of horde and found the named fact while sniffing HTTP
traffic because of another local problem.
After that I changed the css.php and javascript.php like this:
--- services/css.php.orig Wed Nov 19 18:44:53 2003
+++ services/css.php Wed Nov 12 09:21:17 2003
@@ -15,6 +15,8 @@
$browser = &Browser::singleton();
$registry = &Registry::singleton(HORDE_SESSION_NONE);
+Horde::compressOutput();
+
// Figure out if we've been inlined, or called directly.
$send_headers = strstr($_SERVER['PHP_SELF'], 'css.php');
And I cannot find any drawback, but I could see a significiant performance
boost, above all if you have a poor connection to the webserver and/or using
SSL.
I tested with Konqueror, various Opera 7 versions, some IE5/6 and older some
versions of Mozilla Firebird.
Are there any known problems using compression on these two pages? If not, I
would like to suggest this change to be commited to horde.
Greets,
Daniel
More information about the horde
mailing list