Is it possible to configure a worker as an origin, so the worker sits behind the cache?
I’ve created a worker hosted on a subdomain (subdomain.domain.com) which generates a static html page. It works great, but every subsequent request needs to be processed again even though the end result is always the same html output.
Ideally I want the Cloudflare cache to sit in front of the worker, so after the first request is processed by the worker then the resulting html output is cached by Cloudflare so that subsequent visits can be served directly from the cache without needing to execute a worker.
So the flow would become:
Is this possible?