[Koha] Apache bandwidth tuning in default config
Tomás
tomascohen at gmail.com
Fri Jul 3 02:43:05 NZST 2009
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.katipo.co.nz/pipermail/koha/attachments/20090702/31685974/attachment-0001.htm
More information about the Koha
mailing list