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
Noah;
Noah;•4w ago
For some added context, this is what I mean by "it needs to get user state"
No description
Walshy
Walshy•4w ago
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
Noah;
Noah;•4w ago
Hi there, I appreciate your response. I am not using functions, I am using SvelteKit for my frontend and Go Fiber for my backend.
Walshy
Walshy•4w ago
oh then yeah, this will all be cached 🙂
Noah;
Noah;•4w ago
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 :)
Walshy
Walshy•4w ago
Aw great to hear! Thank you for using it!
Bibi
Bibi•4w ago
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
Noah;
Noah;•4w ago
Yes, I’m still using a VPS for my backend
Want results from more Discord servers?
Add your server