diff --git a/nginx/nginx.conf b/nginx/nginx.conf index c6a0282..f73761e 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -13,12 +13,12 @@ http { root /usr/share/nginx/html; index index.html index.htm; include /etc/nginx/mime.types; - #include /etc/nginx/conf.d/_release_token.conf; + include /etc/nginx/conf.d/_release_token.conf; - #etag off; + etag off; - #add_header ETag "\"W/$release_token\"" always; - # + add_header ETag "\"W/$release_token\"" always; + add_header Cache-Control "max-age=0, must-revalidate" always; gzip on; gzip_proxied any; @@ -33,7 +33,7 @@ http { location / { proxy_cache my_cache; proxy_cache_valid 200 1h; - add_header Cache-Control "max-age=0, must-revalidate" always; + try_files $uri $uri/index.html =404; } }