diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-11-17 14:23:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 14:23:31 +0100 |
commit | a0059dfee127120065047878edd1ac2b4258fe93 (patch) | |
tree | 3e3eb44a42dd1b0247a6c652ad63402bf4478088 | |
parent | 508005426328641c3ce36b470a6d7c0d651519c3 (diff) | |
parent | 9802c5cdd80a81570c3aef35607302164c5c1d81 (diff) | |
download | nextcloud-server-a0059dfee127120065047878edd1ac2b4258fe93.tar.gz nextcloud-server-a0059dfee127120065047878edd1ac2b4258fe93.zip |
Merge pull request #2124 from nextcloud/oc_26591
Cache js, css and woff files for a week
-rw-r--r-- | .htaccess | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/.htaccess b/.htaccess index 206d2be33bc..c5dbf194b04 100644 --- a/.htaccess +++ b/.htaccess @@ -21,8 +21,13 @@ </IfModule> # Add cache control for static resources - <FilesMatch "\.(css|js|woff|svg|gif)$"> - Header set Cache-Control "max-age=7200, public" + <FilesMatch "\.(css|js|svg|gif)$"> + Header set Cache-Control "max-age=15778463" + </FilesMatch> + + # Let browsers cache WOFF files for a week + <FilesMatch "\.woff$"> + Header set Cache-Control "max-age=604800" </FilesMatch> </IfModule> <IfModule mod_php5.c> |