#“Requests” count for a Remix app hosted on Cloudflare Pages

1 messages · Page 1 of 1 (latest)

wanton tulip
#

I don’t much backend experience, but I recently built a Remix app that is hosted on Cloudflare pages (free version).

I am trying to understand what counts as a dynamic request in the context of Remix (vs a static request - which are free on Cloudflare).

Is a dynamic request when a loader/action/links/meta function runs? When I see a fetch request in the network tab of my browser’s dev tools?

That’s my understanding so far, but I can’t seem to confirm that from the research I’ve done. Any information that anyone has on this would be greatly appreciated. Thank you!

cobalt abyss
#

Im pretty sure all the calls in the network tab count individually which is why Single Fetch can cut requests from 5 per navigation to 1

white pine
#

A static request would be your assets in the public folder and the build/client folder

#

A dynamic request is anytime your app needs to run JS code server-side, so if a loader or action needs to run, or you need to do SSR that's a dynamic request