Skip to content

fix: align cacheImmutable and Cache-Control semantics#32

Merged
chenjiahan merged 1 commit intomainfrom
codex/align-cacheimmutable-cache-control
Mar 31, 2026
Merged

fix: align cacheImmutable and Cache-Control semantics#32
chenjiahan merged 1 commit intomainfrom
codex/align-cacheimmutable-cache-control

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Mar 31, 2026

Summary

This PR aligns the v2 beta cache header behavior by enabling cacheImmutable by default for immutable assets while preserving cacheControl fallback behavior when cacheImmutable is set to false.
It also updates the README and type docs, and expands the middleware test coverage for the default and opt-out paths.

Testing

  • pnpm exec rstest test/middleware.test.js

Related Links

@chenjiahan chenjiahan changed the title [codex] fix: align cacheImmutable and Cache-Control semantics fix: align cacheImmutable and Cache-Control semantics Mar 31, 2026
@chenjiahan chenjiahan marked this pull request as ready for review March 31, 2026 03:12
@chenjiahan chenjiahan merged commit b226d37 into main Mar 31, 2026
5 checks passed
@chenjiahan chenjiahan deleted the codex/align-cacheimmutable-cache-control branch March 31, 2026 03:18
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