Replies: 1 comment 2 replies
-
This might be a bug now that I think about it |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Non-Goals
Background
The situation is :
Whenever the request is sent to the api route, some information about this request is written in the console output :
The
(cache: HIT)
statement here is misleading. Let me explain:(cache: MISS)
(normal behavior)(cache: HIT)
(normal behavior)random-data-api.com
will also say(cache: HIT)
, which is WRONG because the cache was stall and was just updated, so there was noHIT
.Proposal
The
(cache: STATE)
should be something like(cache: REVALIDATED)
instead of always being(cache: HIT)
when a fetch call has been revalidated.I don't think this is too much work, so I guess I could work on it, but I have no clue where to start.
Beta Was this translation helpful? Give feedback.
All reactions