Hi, let me just say that I’m new to the whole cloudflare thing, so apologies if this is not a question I should be asking in here.
I’ve been playing with Cache-Control headers for an API that returns JSON. I have managed to set up a PageRule and requesting the same resource multiple times seems to only go to cloudflare and return with the same data
and after 4 mins when a new call is made, it goes to my API and that value is cached.
So everything seems fine and perfect, but here is my issue (it may not be an issue, it might be just how it works):
- I make a call to the URL on my desktop (I get a response and subsequent calls get the same response)
- I use the same URL on my mobile (connected via 4G), but I don’t get the same response as from step 1. (however this call seems to cache the data it received and I’ll get the same response for the next 4 mins).
I was expecting the cached data received by my desktop to be the same thing I’d get on my mobile, is this not how it works?
I hope this makes some sort of sense.