Skip to content

Avoid year-long caching of missing asset responses - #24

Merged
mikim merged 1 commit into
mainfrom
codex/asset-error-cache
Sep 12, 2026
Merged

mikim merged 1 commit into
mainfrom
codex/asset-error-cache

Conversation

@mikim

@mikim mikim commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

Production verification confirmed missing assets now return 404, but nginx still attached a one-year immutable cache header to that error response. Remove always from the asset cache directive so successful responses retain long-lived caching and 4xx/5xx responses do not.

The production nginx change is limited to monitor.moss.land. Validated the nginx configuration before and after the change and reloaded successfully. Production checks confirm the real JavaScript asset returns 200 with immutable caching; a missing asset returns 404 without Cache-Control.

@mikim
mikim merged commit ced094b into main Sep 12, 2026
2 checks passed
@mikim
mikim deleted the codex/asset-error-cache branch September 12, 2026 22:37
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.

1 participant