Pages + Custom domain + minify

I’m running a Pages worker with a custom domain attached to it. The domain has auto minify of content enabled, but it doesn’t seem to do so. I was wondering because it’s actually running on pages.dev?

Hello user25816

Cloudflare’s Auto Minify feature is not directly applicable to Pages, even if they’re attached to a custom domain. This is because Cloudflare Pages are served directly from the Cloudflare network and they bypass the standard Cloudflare workers pipeline.

You could try manually minifying your content before deploying it, using build scripts or local development tools. Alternatively, you could use a Cloudflare Worker on the same route to minify your content, but bear in mind that this will be subject to worker execution limits.

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.