From f89a2bbdbeefe2befe77c2985a11109d3e23ac88 Mon Sep 17 00:00:00 2001 From: Olli-Antti Kivilahti Date: Wed, 24 May 2017 09:34:17 -0400 Subject: [PATCH] Bug 12904: Add mod_expire to etc/koha-httpd.conf Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec --- etc/koha-httpd.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/etc/koha-httpd.conf b/etc/koha-httpd.conf index e5a0b45b79..327956fce1 100644 --- a/etc/koha-httpd.conf +++ b/etc/koha-httpd.conf @@ -130,6 +130,14 @@ RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L] + + + 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 @@ -250,6 +258,14 @@ RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L] + + + 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.39.5