I created a worker for this https://github.com/pmeenan/cf-workers/tree/master/optimization-pack using a free subdomain (provided by cloudflare) and set the route to mysite.com/ but when i load my site, it still loads the google fonts and external js from the actual source. I am not using this on a subdomain of my site.
Within the cloudflare dashboard it is showing metrics like it is working.
I am using this with Magento 2.3.6 and if i load that js into the workers playground and preview my site, it works as expected so it appears that worker can work with magento and must be my implementation but i am not sure where to start to debug. My wrangler.toml has my account id and zone id, the JS was copied into index.js
I would appreciate any help of where to look for potential issues.
Thanks