commit 73f189f7e8398214addfcab8f9dd8adae8510e26 parent 17678b5ec61fcff408407f230755de6e3185ecde Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de> Date: Fri, 26 Jun 2020 16:26:23 +0200 Cache images Diffstat:
M | .htaccess | | | 5 | +++++ |
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/.htaccess b/.htaccess @@ -17,3 +17,8 @@ mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </ifModule> + +# Cache one month for image files +<filesMatch ".(jpg|jpeg|png|gif|ico)$"> +Header set Cache-Control "max-age=2628000, public" +</filesMatch>