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;OP•2mo ago
For some added context, this is what I mean by "it needs to get user state"
No description
Walshy
Walshy•2mo 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;OP•2mo 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•2mo ago
oh then yeah, this will all be cached 🙂
Noah;
Noah;OP•2mo 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•2mo ago
Aw great to hear! Thank you for using it!
Bibi
Bibi•2mo 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;OP•2mo ago
Yes, I’m still using a VPS for my backend
Want results from more Discord servers?
Add your server