How can I bypass the cache on a page to get new SSR content?
I have a site served on Cloudflare pages along with a worker for some SSR content. One of my pages is SSR and adds a modal to a page if a certain cookie is present and then instructs for the cookie to be deleted. This modal doesn't appear and the cookie isn't deleted.
The behaviour works as expected when hosting locally.
I tried bypassing the cache by adding a query parameter for when the modal should show e.g.
example.com/?modal
, however this doesn't change the resulting HTML.
What else can I try?1 Reply
Turns out I didn't set the route to be handled by the worker for SSR which would explain the behaviour. Still interested to know more about how I can make the most of caching for a page that is mostly the same but on occasion has some SSR flavour added to it.