Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Static assets redirect to dashboard (#3612)
## Description 1. 404 error instead of redirect on assets. 2. Vercel sets Cache-Control: public, max-age=31536000, immutable for all /assets/* paths, even when a 404 error occurs during deployment. This causes 404 errors on assets to be cached permanently, preventing updates. To prevent this, we set "Cache-Control": "public, max-age=0, must-revalidate" when an asset is not found. ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env` file
- Loading branch information