Hey, imagine a website that is highly dynamic and when it's dynamically generated it costs a lot of database resources. It's a multi tenant app, that hosts websites. The customer websites should be fully static (cached via CF) and purged, when something changed.
DNS
The origin is vercel, that serves all pages fully dynamic. I added the correct DNS entries to cloudflare (CF) and it's working fine (see attached).
Caching Rules
To have the correct caching rules I added the following caching rule expression:
(http.host ne "app.domain.de")
With Eligible for cache and Ignore cache-control header and use this TTL TTL 1 year (maximum)
With also Status code TTL: 200; Duration: 1 year (maximum)
Like that it should cache every customer page for 1 year (app.domain.de is the editor itself. That shouldn't be cached)
Results
As you can see attached I get only redirected (should be fine, because I don't want to see CF, I want to see Vercel when there is no cache).
You can also see, that the cache got bypassed. You can see, that I am not on app.domain.de.
How to configure it correctly?
-- [Allow](#off-topic message)
@hardy swallow also: do you use Cache Reserve or Tiered Cache or both or none?