Apache bandwidth tuning in default config
I've been playing recently with some firefox extensions for web developers: FireBug: https://addons.mozilla.org/es-ES/firefox/addon/1843 PageSpeed: http://code.google.com/intl/es-ES/speed/page-speed/index.html YSlow: http://developer.yahoo.com/yslow/ and found that enabling certain options in the koha's apache VirtualHosts configuration would improve a lot koha's performance in bandwidth use. Only the opac startup page bandwidht usage goes from 368.5K to 118.3K. Enable http compression using mod_deflate --------------------------------------------------------------- Document this command for enabling this in Debian/Ubuntu # a2enmod deflate and add this lines to koha-http.conf in both VirtualHost definitions SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip I specify not to apply useless compression to compresed images. Further options could be used. See http://httpd.apache.org/docs/2.0/mod/mod_deflate.html Enable better caching features by setting explicit expiration far in the future for static content using mod_deflate ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Document this command for enabling this in Debian/Ubuntu # a2enmod expires and add this lines to koha-http.conf in both VirtualHost definitions ExpiresActive On ExpiresDefault "modification plus 1 year" as mod_expires only applies to files in the filesystem it is safe to rely on modification date. This could be fine-tuned, for example on a per filetype basis (see http://httpd.apache.org/docs/2.0/mod/mod_expires.html). ----- PageSpeed in particular offers some recommendation on image sizes and provides an optimal image file for substitution. This could be analised. To+. -- Aparición con vida de Jorge Julio López.
Does any koha developer interested in add this setup to koha default installation? If not, why not? 2009/7/2 Tomás <tomascohen@gmail.com>
I've been playing recently with some firefox extensions for web developers:
FireBug: https://addons.mozilla.org/es-ES/firefox/addon/1843 PageSpeed: http://code.google.com/intl/es-ES/speed/page-speed/index.html YSlow: http://developer.yahoo.com/yslow/
and found that enabling certain options in the koha's apache VirtualHosts configuration would improve a lot koha's performance in bandwidth use. Only the opac startup page bandwidht usage goes from 368.5K to 118.3K. [snip]
2009/8/17 Pablo A. Bianchi <pbianchi@fi.uba.ar>:
Does any koha developer interested in add this setup to koha default installation? If not, why not?
I'm sure they are, but I'm sure they are also busy. But the beauty of a FLOSS project is that anyone can send a patch :) Consider that a challenge :-) Chris
2009/7/2 Tomás <tomascohen@gmail.com>
I've been playing recently with some firefox extensions for web developers:
FireBug: https://addons.mozilla.org/es-ES/firefox/addon/1843 PageSpeed: http://code.google.com/intl/es-ES/speed/page-speed/index.html YSlow: http://developer.yahoo.com/yslow/
and found that enabling certain options in the koha's apache VirtualHosts configuration would improve a lot koha's performance in bandwidth use. Only the opac startup page bandwidht usage goes from 368.5K to 118.3K. [snip]
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
2009/8/16 Chris Cormack <chris@bigballofwax.co.nz>
I'm sure they are, but I'm sure they are also busy.
But the beauty of a FLOSS project is that anyone can send a patch :)
Thanks for your answer Chris. I'm aware of that aspect of FLOSS projects. I also know that for a experienced developer this changes take only 5 minutes and for me much more (never used GIT yet :$). The purpose also was to know if someone think there is not a good idea to made those changes, because is strange that being so simple nobody say something about before. Furthermore, this simples changes seems to be a very interesting improve with an small effort, I was surprise no one responds (perhaps it was a good reason).
Consider that a challenge :-)
OK, despite the above, I will consider the challenge :-)
participants (3)
-
Chris Cormack -
Pablo A. Bianchi -
Tomás