(auto no cache) when fetching Data
Unanswered
Oak Titmouse posted this in #help-forum
Oak TitmouseOP
I'm receiving "Cache missed reason: (auto no cache)" when fetching using the nextjs fetch (with headers) - do headers disable cache?
28 Replies
Oak TitmouseOP
It looks like this:
@Multiflora rose seed chalcid found this logging format from your new video 🙂
Oak TitmouseOP
Anybody have any idea on this one?
Dwarf Crocodile
Is this during development or production?
Northeast Congo Lion
Currently experiencing the same issue. We are calling an external API with the access token of the user. Every request is showing cache SKIP and reason auto no cache
@Dwarf Crocodile Is this during development or production?
Northeast Congo Lion
Should be during development. Just texted receiving these debug logs after building the application, and they did not show up.
Oak TitmouseOP
this is during development (at least)
it's very strange, not sure how to activate the cache here
@Oak Titmouse it's very strange, not sure how to activate the cache here
yes it will skip the cache if you have
no-cache on headerOak TitmouseOP
I don't have any headers set
Oak TitmouseOP
I'm making connections from different applications to test, including Postman where nothing is set
That one is not set in inspect element
oh you are making POST request
I think post request is not cached
Oak TitmouseOP
They are not post requests, I'm running a GET request within Postman (the application)
@Oak Titmouse It looks like this:
this is post request?
Oak TitmouseOP
sorry you can ignore that one
actually, it's not clear - I am issuing a GET but the one that is logged is a POST
interesting
ok so are you making a GET request to the site with postman?
Oak TitmouseOP
I'll grab a screenshot
My request was the top one
Any idea how to interpret this? That there's a POST within the GET?
are you doing POST request to
localhost:3003 inside /api/thing/get?Oak TitmouseOP
It was by default actually. I just changed it to GET and now the response is still SKIPing but the reason is: "auto cache" instead of "auto no cache"