fix: adds no-cache header when debug mode is ON#5405
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
|
⏩ No test execution environment matched (043965a) View output ↗ |
|
Thank you for following the naming conventions for pull request titles! 🙏 |
WalkthroughThe changes update the way the "Cache-Control": "no-cache" HTTP header is conditionally added in two API utility files. Previously, the "Cache-Control" header was incorrectly placed at the top level of the fetch options object, outside of the headers dictionary. The revisions move this conditional logic inside the headers object, ensuring that "Cache-Control" is only included within the headers when the isDebug flag is true. No other logic or exported/public entity declarations are affected by these changes. Possibly related PRs
Suggested labels
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (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 (
|
|



What does this PR do?
fixes the no-cache header during debug mode
How should this be tested?
Checklist
Required
pnpm buildconsole.logsgit pull origin mainAppreciated
Summary by CodeRabbit