Cloudflare DevelopersCD
Cloudflare Developersβ€’4mo agoβ€’
16 replies
Yuu

Compress a binary blob served as worker asset

I have a binary blob that's served as worker asset as part of a react vite app.

I want to compress it before it is sent as it can reduce the size by a lot. Apparently server on
wrangler dev
is compressing the blob but not when it is deployed to the worker. How can I compress it? The attached screenshots show the difference when it is served on localhost vs production
image.png
image.png
Was this page helpful?