web_svc: improve caching for tiles

This commit is contained in:
Markus 2021-06-14 16:54:09 +02:00
parent 9e369291b6
commit 01ab94aa27

View File

@ -29,8 +29,10 @@ server {
proxy_pass http://10.90.224.103/styles/day/$1;
proxy_cache tilecache;
proxy_cache_background_update on;
proxy_cache_lock on;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_cache_valid 200 1d;
proxy_cache_valid 200 7d;
proxy_cache_valid any 1m;
proxy_ignore_headers Expires Cache-Control;
@ -42,8 +44,10 @@ server {
proxy_pass http://10.90.224.103/styles/night/$1;
proxy_cache tilecache;
proxy_cache_background_update on;
proxy_cache_lock on;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
proxy_cache_valid 200 1d;
proxy_cache_valid 200 7d;
proxy_cache_valid any 1m;
proxy_ignore_headers Expires Cache-Control;