Skip to content
Discussion options

You must be logged in to vote

If I remember correctly, it is only 200 status requests that get cached by the patched fetch, source:

 GET / 200 in 1443ms
 │ GET https://pokeapi.co/api/v2/pokemon/foooooo 404 in 1379ms (cache skip)
 │ │ Cache skipped reason: (cache-control: no-cache (hard refresh))
 GET / 200 in 463ms
 │ GET https://pokeapi.co/api/v2/pokemon/foooooo 404 in 439ms (cache skip)
 │ │ Cache skipped reason: (cache-control: no-cache (hard refresh))
 GET / 200 in 125ms

vs

 GET / 200 in 144ms
 │ GET https://pokeapi.co/api/v2/pokemon/ditto 200 in 81ms (cache skip)
 │ │ Cache skipped reason: (cache-cont…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nader-CS
Comment options

Answer selected by Nader-CS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants