Commit Graph

11 Commits (1ced0bcdbd7588a9f807e8834b7e942bade209eb)

Author SHA1 Message Date
Steven 91a7e927a5 fix(server): reduce static asset cache to prevent stale files after redeploy
Changed Cache-Control max-age from 7 days to 1 hour with immutable directive.
This prevents users from experiencing blank pages or JS errors when accessing
frequently redeployed instances (e.g., demo environments) where old cached
assets may reference files that no longer exist after redeployment.

Since Vite generates content-hashed filenames, the immutable directive prevents
unnecessary revalidation while the shorter cache duration ensures fresh assets
are served within an hour of redeployment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2 weeks ago
Steven f1b365f928 refactor: clean packages 5 months ago
倒霉狐狸 ebf13c4dff
chore: caching resource files accelerates second requests (#4614)
* cache assets files

* Apply suggestions from code review

* Update server/router/frontend/frontend.go

* Update server/router/frontend/frontend.go

---------

Co-authored-by: Johnny <yourselfhosted@gmail.com>
7 months ago
Johnny d794e6db76
chore: remove internal frontend cache 8 months ago
Johnny b56aa397b2 chore: update assets routes 8 months ago
boojack 04d7ba48e5
chore: remove default gzip middleware 9 months ago
Steven 57c00734e2 fix: frontend build 1 year ago
Steven 98f2cf6397 chore: tweak linter 1 year ago
Steven b215426623 chore: update general setting 1 year ago
Steven 144269fbbc chore: fix router 2 years ago
Steven 20dd3e17f7 chore: rename router package 2 years ago