From 9802c5cdd80a81570c3aef35607302164c5c1d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 11 Nov 2016 13:10:35 +0100 Subject: [PATCH] Cache js, css and woff files for a week (#26591) increases the cache duration for css and js files from 2 hours to half a year. Should they change the versionhash changes as well and a new file is fetched. Half a year should be long enough for oc updates. Also allows caching woff files for 7 days. Currently, there is no versionhash available, but pressing F5 will also refresh the woff files. --- .htaccess | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 206d2be33b..c5dbf194b0 100644 --- a/.htaccess +++ b/.htaccess @@ -21,8 +21,13 @@ # Add cache control for static resources - - Header set Cache-Control "max-age=7200, public" + + Header set Cache-Control "max-age=15778463" + + + # Let browsers cache WOFF files for a week + + Header set Cache-Control "max-age=604800"