Added expires directive and map to nginx, allowing browser to cache SOGO JS,CSS,WOFF files.

master
Alireza 2018-02-02 18:38:18 +03:30
parent 1b898b1c7b
commit 781a5eb69a
1 changed files with 4 additions and 0 deletions

View File

@ -161,6 +161,7 @@ server {
proxy_cache_valid 200 1d; proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
#alias /usr/lib/GNUstep/SOGo/WebServerResources/; #alias /usr/lib/GNUstep/SOGo/WebServerResources/;
expires $expires;
allow all; allow all;
} }
@ -171,6 +172,7 @@ server {
proxy_cache_valid 200 1d; proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
#alias /usr/lib/GNUstep/SOGo/WebServerResources/; #alias /usr/lib/GNUstep/SOGo/WebServerResources/;
expires $expires;
allow all; allow all;
} }
@ -344,6 +346,7 @@ server {
proxy_cache_valid 200 1d; proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
#alias /usr/lib/GNUstep/SOGo/WebServerResources/; #alias /usr/lib/GNUstep/SOGo/WebServerResources/;
expires $expires;
allow all; allow all;
} }
@ -354,6 +357,7 @@ server {
proxy_cache_valid 200 1d; proxy_cache_valid 200 1d;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
#alias /usr/lib/GNUstep/SOGo/WebServerResources/; #alias /usr/lib/GNUstep/SOGo/WebServerResources/;
expires $expires;
allow all; allow all;
} }