Question about Cloudflare Cache Status
My websites home page needs to get the user state and fetch some things about the servers the user is in and the status of the sidebar buttons (sidebar buttons are disabled if the users authorization is none or if it is invalid)
My home page is returning a CF Cache Status of
DYNAMIC
I am wondering if the fact that my home page fetches user state is making it so the Cache status is not HIT
8 Replies
For some added context, this is what I mean by "it needs to get user state"
You'll often see most Pages pages show DYNAMIC, the reasoning is a little complex but tldr is things are actually cached
If you run a Function (which it sounds like you may), that'll still run before the cached page
Hi there, I appreciate your response.
I am not using functions, I am using SvelteKit for my frontend and Go Fiber for my backend.
oh then yeah, this will all be cached 🙂
Alright, good to know.
By the way, I recently switched from a VPS to Pages - one of the best decisions I have ever made! Pages is a great product.
Thank you all for all of the work you do :)
Aw great to hear! Thank you for using it!
Are you still using a vps to host your backend and pages only for the front end? I’m just interested for my own projects
Yes, I’m still using a VPS for my backend