summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-10-14 10:41:10 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-10-14 10:41:10 +0200
commit766314a6be5a24a4bd7d503d9c44998c13fe348b (patch)
tree05e51621ee51c4fc74ac96a3478c398b108b6c65
parentc2cfeea8889472bb06e0f64f235907165a5d5b6b (diff)
parent4b5c7d3d9d783e2b905659e581474b270b3c4796 (diff)
downloadnextcloud-server-766314a6be5a24a4bd7d503d9c44998c13fe348b.tar.gz
nextcloud-server-766314a6be5a24a4bd7d503d9c44998c13fe348b.zip
Merge pull request #11556 from owncloud/cache-js-and-css
adding cache control headers for css and js - fixes #11496
-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>