I have built a nice little media-service with Laraval, thats behind a Cloudflare cache. Its caching js files and img files, that together forms a gallery that can be embedded on other pages.
I have a bit of a problem with undertanding Cloudflares cache. I hope someone here has an idea of how to work with it.
When images and js-files are updated, i need to reflush the cache on Cloudflare. Im doing this with the Cloudflare API.
However, the jsfiles and images arent updated, even in incognito (etc).
I tried setting the Browser TTL to 2 minuttes, however this didnt solve it.
Im wondering now, if the Edge TTL needs to go down - if the ordering of Cloudflare Cache to reflush only reaches Cloudflares "local" cache and not the Edge Cache - and if the Edge Cache TTL really hits Cloudflares "local" cache - or if Edge Cache downloads from the original source of the files ?
Does anyone have any experience with this - and if theres any great Laravel + Cloudflare resources that explains this?
Thanks in advance !