diff --git a/docker/devenv/files/nginx.conf b/docker/devenv/files/nginx.conf index 757055af41..481ae826aa 100644 --- a/docker/devenv/files/nginx.conf +++ b/docker/devenv/files/nginx.conf @@ -12,7 +12,7 @@ http { sendfile on; tcp_nopush on; tcp_nodelay on; - keepalive_timeout 65; + keepalive_timeout 0; types_hash_max_size 2048; server_tokens off; @@ -223,16 +223,6 @@ http { add_header X-Cache-Status $upstream_cache_status; } - location ~ ^/js/config.js$ { - add_header Cache-Control "no-store, no-cache, max-age=0" always; - } - - location ~* \.(js|css|jpg|svg|png|mjs|map)$ { - # We set no cache only on devenv - add_header Cache-Control "no-store, no-cache, max-age=0" always; - # add_header Cache-Control "max-age=604800" always; # 7 days - } - location ~ ^/(/|css|fonts|images|js|wasm|mjs|map) { } @@ -240,9 +230,10 @@ http { return 301 " /404"; } - add_header Last-Modified $date_gmt; - add_header Cache-Control "no-store, no-cache, max-age=0" always; - if_modified_since off; + add_header Cache-Control "no-store"; + add_header Connection close always; + # This header is what we need to use on prod + # add_header Cache-Control "public, must-revalidate, max-age=0"; try_files $uri /index.html$is_args$args /index.html =404; } }