From 781a5eb69aa650414e2d125e7696173c38137c4e Mon Sep 17 00:00:00 2001 From: Alireza Date: Fri, 2 Feb 2018 18:38:18 +0330 Subject: [PATCH] Added expires directive and map to nginx, allowing browser to cache SOGO JS,CSS,WOFF files. --- data/conf/nginx/site.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index 25516fda..72f8a5af 100644 --- a/data/conf/nginx/site.conf +++ b/data/conf/nginx/site.conf @@ -161,6 +161,7 @@ server { proxy_cache_valid 200 1d; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; #alias /usr/lib/GNUstep/SOGo/WebServerResources/; + expires $expires; allow all; } @@ -171,6 +172,7 @@ server { proxy_cache_valid 200 1d; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; #alias /usr/lib/GNUstep/SOGo/WebServerResources/; + expires $expires; allow all; } @@ -344,6 +346,7 @@ server { proxy_cache_valid 200 1d; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; #alias /usr/lib/GNUstep/SOGo/WebServerResources/; + expires $expires; allow all; } @@ -354,6 +357,7 @@ server { proxy_cache_valid 200 1d; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; #alias /usr/lib/GNUstep/SOGo/WebServerResources/; + expires $expires; allow all; }