Mecanik / cloudflare-image-resizing-worker

Cloudflare Image Resizing worker for WordPress
Apache License 2.0
41 stars 9 forks source link

How to deal with multiple workers? #1

Closed gardar closed 1 year ago

gardar commented 1 year ago

First off I want to thank you for releasing the worker open source! I've been using the cloudflare-image-resizing plugin with great success but I'm excited to use a worker instead.

Can you give any guidance on how the worker script could co-exist with other workers? I'm not super familiar with how the workers function, but I've already got Edge Cache HTML via Cloudflare Workers enabled and if I try to add a wildcard route for the domain (example.com/*) I get the following error: workers.api.error.duplicate_route

Mecanik commented 1 year ago

I can help you, but I do not recommend using that plugin. It does more harm to your website than good.

HTML caching is not an easy task, it can be done for free, but not like that.

Please disable it, run my worker, see if all OK, then we get back to HTML caching.