forked from FF-RGB/ansible
web_svc: improve caching for tiles
This commit is contained in:
parent
9e369291b6
commit
01ab94aa27
@ -29,8 +29,10 @@ server {
|
|||||||
proxy_pass http://10.90.224.103/styles/day/$1;
|
proxy_pass http://10.90.224.103/styles/day/$1;
|
||||||
|
|
||||||
proxy_cache tilecache;
|
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_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_cache_valid any 1m;
|
||||||
|
|
||||||
proxy_ignore_headers Expires Cache-Control;
|
proxy_ignore_headers Expires Cache-Control;
|
||||||
@ -42,8 +44,10 @@ server {
|
|||||||
proxy_pass http://10.90.224.103/styles/night/$1;
|
proxy_pass http://10.90.224.103/styles/night/$1;
|
||||||
|
|
||||||
proxy_cache tilecache;
|
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_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_cache_valid any 1m;
|
||||||
|
|
||||||
proxy_ignore_headers Expires Cache-Control;
|
proxy_ignore_headers Expires Cache-Control;
|
||||||
|
Loading…
Reference in New Issue
Block a user