Skip to content

Conversation

@Phillezi
Copy link
Member

Fix SPA breakage due to cached index.html

  • Ensure index.html is never cached by the browser to prevent serving outdated HTML that references old JS/CSS bundles.

    • Added Cache-Control: no-cache, no-store, must-revalidate and expires -1 for .html files in Nginx.
  • Temporary workaround for existing clients with the old index.htmlcached:

    • Create a symlink from the new JS bundle to the filename of the old bundle.
    • This allows clients requesting the old JS file (from cached HTML) to still load the latest code without seeing a white screen.

closes #356

…tes) + add workaround that symlink new js bundle to the path of the old bundle (from old cached index.html) so clients that have a cached index.html dont get white page
@Phillezi Phillezi self-assigned this Oct 11, 2025
@Phillezi
Copy link
Member Author

Will change the cache policy for index.html in a later pr

@Phillezi Phillezi closed this Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bad cache options for nginx cause white page when dist is updated

2 participants