If I’m using edge caching for HTML pages for a WP site, will static files pass-through service workers and are counted as requests?
The route that I have to put will be like my-site.com/*
Otherwise, the free plan of Service Workers allows 100,000 requests per day. If a website has 100 requests in a page (including HTML, CSS, JS, Images etc), that would make only 1k page views a day.
Even if I upgrade to the “Unlimited” plan, that would make only 3 times that of the free plan (~3k page views a day, assuming 100 requests in a page).
If static files are counted, any way to exclude them?
Ok. Got it. One more doubt, how does worker routes aligns with page rules?
For example I’ve assigned a worker to “example.com/" and I’ve set “Cache Everything” using Page Rules for the sample route, "example.com/”. Which one will work in this case (and run first)? Or ‘Page Rule’ are completely ignored?
Page rules (redirects, for example) run before Workers, but the cache is after the worker. A Worker will always run when a request is received, regardless of Page Rules and cache settings.