Cloudflare Auto-Minify not working with NGINX

Hello,

I have a server running on Nginx with Angular 8.

I can’t make cloudflare minify any css or js files…
My DNS is active, the CSS & JS ressources are cached and hit by cloudflare CDN.

I have enabled of course the auto-minify for CSS & JS & HTML in Speed tab.

Whats i’m doing wrong? :confused:

Example link to the ressource that i’m unable to minify: https://immotreso.com/assets/css/custom.css

Thank you,
Regards,

That is definitely not minified. It passes CSS validation, and it’s in the Cloudflare cache. I suggest that you open a Support Ticket:

Login to Cloudflare and then contact Cloudflare Support by clicking on the Get More Help button.

There is a no-transform in cache control, which I am pretty sure comes from the origin and most likely prevents the minification. I’d assume it should work once the origin is not sending that any longer.

2 Likes

Hello Sandro,

Thank you for your help, that’s fixed it !

I did not know that no-transform was blocking the minification of cloudflare…

Have a good day

This topic was automatically closed after 30 days. New replies are no longer allowed.