Skip to content

Commit f2cbfd5

Browse files
committed
nginx target
1 parent 53942d6 commit f2cbfd5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

scripts/http_host/http_host_lib/nginx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create_version_location(area: str, version: str, subdir: Path) -> str:
7070
location = /{area}/{version} {{ # no trailing slash
7171
alias {tilejson_path}; # no trailing slash
7272
73-
expires 1d; # TODO target 1w
73+
expires 1w;
7474
default_type application/json;
7575
7676
add_header 'Access-Control-Allow-Origin' '*' always;
@@ -82,7 +82,7 @@ def create_version_location(area: str, version: str, subdir: Path) -> str:
8282
try_files $uri @empty_tile;
8383
add_header Content-Encoding gzip;
8484
85-
expires 1d; # TODO target 10y
85+
expires 10y;
8686
8787
types {{
8888
application/vnd.mapbox-vector-tile pbf;

scripts/http_host/http_host_lib/templates/nginx_cf.conf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ server {
4444
alias /data/ofm/http_host/assets/fonts/; # trailing slash
4545
try_files $uri =404;
4646

47-
expires 1d; # target 1w
47+
expires 1w;
4848

4949
add_header 'Access-Control-Allow-Origin' '*' always;
5050
add_header Cache-Control public;
@@ -56,7 +56,7 @@ server {
5656
alias /data/ofm/http_host/assets/sprites/; # trailing slash
5757
try_files $uri =404;
5858

59-
expires 1d; # target 10y
59+
expires 10y;
6060

6161
add_header 'Access-Control-Allow-Origin' '*' always;
6262
add_header Cache-Control public;
@@ -68,7 +68,7 @@ server {
6868
alias /data/ofm/http_host/assets/natural_earth/tiles/natural_earth_2_shaded_relief.raster/; # trailing slash
6969
try_files $uri =404;
7070

71-
expires 1d; # target 10y
71+
expires 10y;
7272

7373
add_header 'Access-Control-Allow-Origin' '*' always;
7474
add_header Cache-Control public;

0 commit comments

Comments
 (0)