APO and worker cache

I have setup and tested a worker that caches the site content according to the device, using query strings. I tested the worker and it works, but when moving the worker to the main site which has APO enabled the cache from the worker is not working as expected serving always the first cached version like my worker is not even there. (I have used one of the APO supported query strings inside the worker).

So the question is: Does Cloudflare workers caching works together with APO ?


APO will return from cache before Cloudflare workers will be executed. Your worker will run only if APO bypass caching or cache is empty. We are in the final stages of supported separate mobile cache for APO, I hope it solve your use case.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.