#Apply Cloudflare Auto-Minify for Worker requests that return R2 html, js, and png files

7 messages · Page 1 of 1 (latest)

green sonnet
#

I've turned on auto-minify on cloudflare and cleared the cache, but I don't see Cloudflare applying any auto-minifying to my pages.

The flow currently is client request -> worker -> r2 file. It seems like this bypasses the Auto-Minify logic layer. Is there a way to enable this?

olive quail
#

Auto minify only applies to cached assets, are you implementing the Cache API in the Worker?

green sonnet
#

I'm not. I'm getting the data from R2 and returning directly. Is there a way to do what you are talking about with R2?

olive quail
green sonnet
#

this is a free api to use, right?

#

Will this also work with the Polish feature?

olive quail
#

Yes and yes