I want to implement EDGE CACHE so that my static files (specially images) are cached on the CF servers for all succeeding website visitors , for speed and bandwidth savings on origin server.
but I’m confused with the definition:
" Specify how long to cache a resource in the Cloudflare edge network. Edge Cache TTL only takes effect when included as a setting in a Page Rule that also sets Cache Level to Cache Everything . Edge Cache TTL isn’t visible in response headers. The minimum Edge Cache TTL depends on plan type:"
This seems to imply that I have to set CACHE LEVEL to CACHE ALL instead of STANDARD…
That means everything’s gonna get cached… images, php pages, php/api responses, jsons, etc… right?
So that means this has the potential to break my site? specially with form submissions… the submitted data to the api is as follows
URL: domain.com/api.php?save=1&user_id=1
{form data inside POST}
if success, api responds with “ok”
else, “error”
So if i understand this correctly, the first time a user successfully submits data and get’s the “ok” from the origin server, CF will then save this response under the url definition:
domain.com/api.php?save=1&user_id=1
Thus next time someone submits data to the api, even if it’s wrong, CF will still present the cached “ok” response to the browser…
Right?
These and other very similar concerns are what im worried about.
And if so, is there a way to take advantage of edge cache w/o caching everything?!