summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-11-04 16:11:49 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-11-04 16:24:10 +0000
commitdfd579ca84df5f0cb07019108ed35d8d7369384b (patch)
tree52ceeb2136dbfed0930c9a175e4ca64e7c32367c
parentSwitch to alternate shared mount point (diff)
downloadconfig-dfd579ca84df5f0cb07019108ed35d8d7369384b.tar.bz2
config-dfd579ca84df5f0cb07019108ed35d8d7369384b.tar.xz
config-dfd579ca84df5f0cb07019108ed35d8d7369384b.zip
Improve cachability of js, css and png
-rw-r--r--etc/apache/httpd.conf7
1 files changed, 7 insertions, 0 deletions
diff --git a/etc/apache/httpd.conf b/etc/apache/httpd.conf
index 38110cc..9f79d0d 100644
--- a/etc/apache/httpd.conf
+++ b/etc/apache/httpd.conf
@@ -51,11 +51,18 @@ LoadModule status_module modules/mod_status.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule http2_module modules/mod_http2.so
+LoadModule headers_module modules/mod_headers.so
+LoadModule expires_module modules/mod_expires.so
CacheRoot "/var/cache/apache2/"
CacheEnable disk /
CacheDirLevels 2
CacheDirLength 1
+CacheMinExpire 60
+ExpiresActive on
+ExpiresByType image/png A86400
+ExpiresByType text/css A86400
+ExpiresByType application/x-javascript A86400
<Directory />
Options FollowSymLinks Indexes ExecCGI