Can we cache an API even if the third-party API sends Cache-Control: no-cache? #84690
-
SummaryI want to understand if it’s possible to cache an API even when the third-party API explicitly disables caching via the Cache-Control: no-cache header. In other words, can the frontend force caching despite the API’s no-cache directive?
Additional informationNo response ExampleNo response |
Beta Was this translation helpful? Give feedback.
Answered by
icyJoseph
Oct 9, 2025
Replies: 1 comment 1 reply
-
In the server exclusively, Next.js has its own caching mechanics around |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
abhishekmardiya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In the server exclusively, Next.js has its own caching mechanics around
fetch
, and AFAIK, it doesn't look at what the source said. In general, fetch in Node.js doesnt' do caching itself, there's a toolbox called interceptors that does.