Remove DECO_PAGE_CACHE_ENABLED env var — enable page cache by default#1157
Remove DECO_PAGE_CACHE_ENABLED env var — enable page cache by default#1157igoramf wants to merge 1 commit into
Conversation
Tagging OptionsShould a new tag be published when this PR is merged?
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR removes the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
DECO_PAGE_CACHE_ENABLEDenv var requirementDECO_PAGE_CACHE_ENABLED=trueto opt-in)DECO_PAGE_CACHE_CONTROLenv var is still supported to customize theCache-Controlheader valueBehavior unchanged
Set-Cookieheaders are never cached (no-store, no-cache, must-revalidate)PAGE_DIRTY_KEY) are not cachedcacheable !== truedisable cachingSummary by cubic
Enable page caching for HTML responses by default.
DECO_PAGE_CACHE_CONTROLstill configures the Cache-Control header; caching still skips responses with Set-Cookie, dirty pages, and flags not marked cacheable.DECO_PAGE_CACHE_ENABLEDfrom your environment and infra configs.DECO_PAGE_CACHE_CONTROLto adjust caching behavior if needed.Written for commit 4d403aa. Summary will update on new commits.
Summary by CodeRabbit