MINIFY HTML is not working

Hello!!

I have JS/CSS/HTML minification enabled on my Cloudflare dashboard. HOWEVER the HTML files are not being minified (if I have inline CSS/JS they are not being minified and not even the HTML code itself is being minified).

The CSS/JSS are being minified perfectly. I have no pagerules running and nothing crazy that could prevent this from working.

HTML -> view-source:https://www.sitepor500.com.br/

JS (is being minified) -> view-source:https://www.sitepor500.com.br/scripts.js

CSS (is being minified) -> view-source:https://www.sitepor500.com.br/estilos.css

Why HTML is not being minified?

Also, is HTML selected in your minification options?

1 Like

Hi,

So it looks like a bug cause. I have HTML minify enabled (check print attached).

Also, try to access https://www.sitepor500.com.br/ in your browser. You will see a HIT in the CF cache but the inline CSS/JS code is not being minified inside the HTML code.

I dont think that is a bug, your HTML does not seem to be valid and the article seems to mention that it requires valid HTML.

In the link provided, they specifically state that inline JS/CSS inside of HTML won’t be minified.

1 Like

@sandro why it’s not valid? where did you take that information?

@matteo but as you can see in the link below, not even the HTML is being minified.

view-source:https://www.sitepor500.com.br/

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