Commit Graph

11 Commits (eb541d04cc532884d364a22db0da5fbac422a99a)

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>
8 months ago
Steven f1b365f928 refactor: clean packages 1 year 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>
1 year ago
Johnny d794e6db76
chore: remove internal frontend cache 1 year ago
Johnny b56aa397b2 chore: update assets routes 1 year ago
boojack 04d7ba48e5
chore: remove default gzip middleware 1 year ago
Steven 57c00734e2 fix: frontend build 2 years ago
Steven 98f2cf6397 chore: tweak linter 2 years ago
Steven b215426623 chore: update general setting 2 years ago
Steven 144269fbbc chore: fix router 2 years ago
Steven 20dd3e17f7 chore: rename router package 2 years ago