diff --git a/services/frontend/nginx.conf.template b/services/frontend/nginx.conf.template index 6367bdf19..d7df3c724 100644 --- a/services/frontend/nginx.conf.template +++ b/services/frontend/nginx.conf.template @@ -38,6 +38,7 @@ http { } location /tileserver/ { + expires 1h; proxy_pass ${HEADWAY_TILESERVER_URL}/; } @@ -57,7 +58,7 @@ http { add_header Cache-Control "no-cache, no-store, must-revalidate"; } - location ~* \.(?:css|js|jpg|svg)$ { + location ~* \.(?:css|js|jpg|svg|woff|woff2)$ { expires 30d; # We aggressively cache assets, since our asset URLs contain a # cache-buster