• Steven's avatar
    fix(server): reduce static asset cache to prevent stale files after redeploy · 91a7e927
    Steven authored
    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: 's avatarClaude <noreply@anthropic.com>
    91a7e927
Name
Last commit
Last update
.github Loading commit data...
cmd/memos Loading commit data...
internal Loading commit data...
plugin Loading commit data...
proto Loading commit data...
scripts Loading commit data...
server Loading commit data...
store Loading commit data...
web Loading commit data...
.dockerignore Loading commit data...
.gitignore Loading commit data...
.golangci.yaml Loading commit data...
.goreleaser.yaml Loading commit data...
CLAUDE.md Loading commit data...
CODEOWNERS Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...