#Fetch Cache and 404 status code

3 messages · Page 1 of 1 (latest)

plain halo
#

Is someone able to confirm my understanding that when fetch()ing something that 404's, that the result is not cached? I couldn't see this written down in the docs.

My use cases is that we are using catch-all routes which hit a CMS, and we are getting a lot of cache misses for pages that don't exist. Fetches for pages that exist cache fine, but those that 404 do not.

unique crescentBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

fluid crescent