diff --git a/main.nginx.conf b/main.nginx.conf index 2026811f0..98a00db45 100644 --- a/main.nginx.conf +++ b/main.nginx.conf @@ -97,10 +97,11 @@ http { location / { root ./dist; - location /index.html { - include ./common-headers.nginx.conf; - add_header Cache-Control no-cache; - } + include ./common-headers.nginx.conf; + # We return this header for more files in development than we do in + # production. That's needed because in development, unlike production, + # many file names don't contain hashes. + add_header Cache-Control no-cache; } } }