From bc7e7404ea49420b08db54f1776e08d89f910b47 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Wed, 28 Dec 2016 18:02:08 +0200 Subject: [PATCH] Bug 12904 - Add mod_expire to etc/koha-httpd.conf Has a positive effect on page loads for crazy dev-installs as well. --- etc/koha-httpd.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index ca42f32..3851f5a 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -157,6 +157,14 @@ ProxyPassReverse /api "unix:/var/run/koha/plack.sock|http://localhost/api" + + + ExpiresActive on + ExpiresByType text/css "access plus 60 days" + ExpiresByType application/javascript "access plus 60 days" + ExpiresByType image/png "access plus 12 hours" + ExpiresByType image/gif "access plus 12 hours" + ## Intranet @@ -314,6 +322,13 @@ ProxyPassReverse /api "unix:/var/run/koha/plack.sock|http://localhost/api" + + ExpiresActive on + ExpiresByType text/css "access plus 60 days" + ExpiresByType application/javascript "access plus 60 days" + ExpiresByType image/png "access plus 12 hours" + ExpiresByType image/gif "access plus 12 hours" + # Uncomment this VirtualHost to enable API access through -- 2.7.4