summaryrefslogtreecommitdiffstats
path: root/.htaccess
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-10-14 06:36:53 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-10-14 06:36:53 +0200
commit4b5c7d3d9d783e2b905659e581474b270b3c4796 (patch)
tree9c268adf7303d129a473ce61d7d66fd930b6d0fb /.htaccess
parentbaffe5353f3fd57fd9ecb353ae81bf3164896f6f (diff)
downloadnextcloud-server-4b5c7d3d9d783e2b905659e581474b270b3c4796.tar.gz
nextcloud-server-4b5c7d3d9d783e2b905659e581474b270b3c4796.zip
adding cache control headers for css and js - fixes #11496
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess5
1 files changed, 5 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index ee4d5af1d85..e45810d0a05 100644
--- a/.htaccess
+++ b/.htaccess
@@ -38,3 +38,8 @@ Options -Indexes
<IfModule pagespeed_module>
ModPagespeed Off
</IfModule>
+<IfModule mod_headers.c>
+ <FilesMatch ".(css|js)$">
+ Header set Cache-Control "max-age=7200, public"
+ </FilesMatch>
+</IfModule>