fix: use staleWhileRevalidate in caching middleware#22511
fix: use staleWhileRevalidate in caching middleware#22511im-adithya wants to merge 1 commit intoTryGhost:mainfrom
Conversation
WalkthroughThe pull request updates the caching middleware by modifying the parameters passed to the cache control function. The change adds the Assessment against linked issues
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (2)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
9a8e9a4 to
bbcb289
Compare
|
@mike182uk can you please have a look :D |
|
Hi @im-adithya, I'm aware you made several updates a few months ago, but most of them didn't have tests. As I explained in this comment we don't accept PRs without tests. I've left this open for a bit in case you wanted to update it but am having a bit of a clear out today. You're welcome to re-open the PR with tests anytime and we can look to review it! |
Fixes #22131
Description
Passes
staleWhileRevalidateto thecacheControlas it was missing previously, causing the above issue.Checklist
yarn test:allandyarn lint)