]> source.dussan.org Git - nextcloud-server.git/commitdiff
adding cache control headers for css and js - fixes #11496
authorThomas Müller <thomas.mueller@tmit.eu>
Tue, 14 Oct 2014 04:36:53 +0000 (06:36 +0200)
committerThomas Müller <thomas.mueller@tmit.eu>
Tue, 14 Oct 2014 04:36:53 +0000 (06:36 +0200)
.htaccess

index ee4d5af1d85b28be6fe177d27b8638311ec41829..e45810d0a0549c0f536cf1ed21cb51a41bdcc361 100644 (file)
--- 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>