Skip to content
Discussion options

You must be logged in to vote

I suppose that's because index.html is being cached.
To solve this we need to set separate cache strategies for index.html (no-cache) and static assets (long time cache since they have content hashes in the file names).

Can you please try the following nginx config?

frontend/nginx.conf

server {
  listen 80;

  root /usr/share/nginx/html;
  index index.html index.htm;

  # Serve index.html with no-cache
  location / {
      try_files $uri /index.html =404;
      add_header Cache-Control "no-cache, no-store, must-revalidate" always;
  }

  # Serve assets files normally
  location /assets/ {
      try_files $uri =404;
  }

  include /etc/nginx/extra-conf.d/*.conf;
}

Don't forget to rebuild …

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1553 on January 22, 2026 21:10.