From 37bda26e3230bf3cbda43ad44884964d0854b363 Mon Sep 17 00:00:00 2001 From: svlentink Date: Thu, 26 Oct 2017 16:14:16 +0200 Subject: [PATCH] more static resources cached --- conf/nginx-site-ssl.conf | 2 +- conf/nginx-site.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/conf/nginx-site-ssl.conf b/conf/nginx-site-ssl.conf index c468409..5a460b6 100644 --- a/conf/nginx-site-ssl.conf +++ b/conf/nginx-site-ssl.conf @@ -60,7 +60,7 @@ server { include fastcgi_params; } - location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { + location ~* \.(jpg|jpeg|gif|png|css|js|ico|webp|tiff|ttf|svg)$ { expires 5d; } diff --git a/conf/nginx-site.conf b/conf/nginx-site.conf index d6fd777..31a967b 100644 --- a/conf/nginx-site.conf +++ b/conf/nginx-site.conf @@ -53,7 +53,7 @@ server { include fastcgi_params; } - location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { + location ~* \.(jpg|jpeg|gif|png|css|js|ico|webp|tiff|ttf|svg)$ { expires 5d; }