There are a couple of tricks you can use to make JSPWiki faster if you have an Apache front-end (either using mod_jk or mod_proxy):

Enable compression#

The easiest trick is to enable compression using mod_deflate. For example, put the following in the relevant configuration file (e.g. deflate.conf)

<IfModule mod_deflate.c>
          AddOutputFilterByType DEFLATE text/html text/plain text/xml application/rss+xml application/rdf+xml application/x-javascript text/css
          BrowserMatch ^Mozilla/4 gzip-only-text/html
          BrowserMatch ^Mozilla/4\.0[678] no-gzip
          BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>

This makes all HTML, RSS, Javascript and CSS files compressed on the wire, making them a lot faster to transport.

JSPWiki does ship with the CSS and JS files compressed already, so the saving on those is not that big, but the saving is significant for HTML.

Expiry times#

A lot of data is not changed very often (for example, images and other static content). Therefore it makes sense to set the Expires-header on this content. JSPWiki does not set it automatically. Even if it could, it's probably better to have the web server take care of this sort of stuff anyway.

For Apache 2.2, you can use the mod_expires library, which allows you to automatically set the expiry times. Here's a good config. If you change your Wiki a lot, then you might want to have shorter expiry times.

Put these in your httpd.conf or expires.conf.

ExpiresActive on

ExpiresByType image/gif                 "access plus 1 week" 
ExpiresByType image/png                 "access plus 1 week" 
ExpiresByType text/css                  "access plus 1 week" 
ExpiresByType application/x-javascript  "access plus 1 week" 
ExpiresByType application/javascript    "access plus 1 week" 
ExpiresByType text/javascript           "access plus 1 week" 

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-1) was last changed on 13-Oct-2008 19:44 by Janne Jalkanen  
G’day (anonymous guest) My Prefs
This is the left menu footer
JSPWiki v2.8.3-svn-4