Roundcube Community Forum

Release Support => Requests => Topic started by: seansan on December 14, 2006, 07:52:30 AM

Title: Caching of images speeds up program
Post by: seansan on December 14, 2006, 07:52:30 AM

By adding patch below a .htaccess file will be created in the images dir - caching images locally for 1 day. This speeds up roundcube



Index: roundcubemail/skins/default/images/.htaccess
===================================================================
--- roundcubemail/skins/default/images/.htaccess (revision 0)
+++ roundcubemail/skins/default/images/.htaccess (revision 0)
@@ -0,0 +1,5 @@
+### activate mod_expires
+ExpiresActive On
+### Expire .gif's 1 day from when they're accessed
+ExpiresByType image/gif A86400
+ExpiresByType image/png A86400
\ No newline at end of file