Version 3, last updated by Stian Didriksen at 23 Mar 22:16 UTC
Better performance by using Expire HTTP headers
There's a new plugin in Nooku Server Alpha 4 that rewrites URIs to stylesheets, script, images and css urls. Rewrite how? To support Expire headers by making each URI unique by adding the file's modified timestamp as a query variable. That way it changes whenever the file does, and never unless it does. So it's possible to set expire headers to max.
Recommended Apache configuration for expire headers
########## Begin - Optimal default expiration time
## Note: You need to enable the "System - Expire" plugin for this to work optimally
## Based on: http://akeeba.assembla.com/code/master-htaccess/git/nodes/htaccess.txt
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/css "now plus 1 year"
ExpiresByType application/javascript "now plus 1 year"
ExpiresByType application/x-javascript "now plus 1 year"
ExpiresByType image/bmp "now plus 1 year"
ExpiresByType image/gif "now plus 1 year"
ExpiresByType image/jpeg "now plus 1 year"
ExpiresByType image/png "now plus 1 year"
ExpiresByType image/svg+xml "now plus 1 year"
ExpiresByType image/vnd.microsoft.icon "now plus 1 year"
ExpiresByType image/x-icon "now plus 1 year"
ExpiresByType image/ico "now plus 1 year"
ExpiresByType image/icon "now plus 1 year"
ExpiresByType text/ico "now plus 1 year"
ExpiresByType application/ico "now plus 1 year"
</IfModule>
########## End - Optimal expiration time
nginx equivalent
location ~ \.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ {
access_log off;
expires max;
}