Skip to content

Commit

Permalink
made sure that the naturalearthtiles proxy caches requests for longer
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Apr 29, 2024
1 parent 5e7ed7f commit 8b9b2ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ http {
resolver 1.1.1.1;
proxy_pass https://klokantech.github.io/naturalearthtiles/tiles/natural_earth_2_shaded_relief.raster/$1;
proxy_set_header Host $proxy_host;
proxy_buffering on;
proxy_cache STATIC;
proxy_cache_valid 200 10d;
proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504;
expires 7d;
add_header Cache-Control "public";
}

location ~* \.webp$ {
Expand Down

0 comments on commit 8b9b2ec

Please sign in to comment.