HTML Auto Minify

Hello, I had HTML Auto Minify turned on in my Cloudflare panel. But HTML minify is not working. Why is this not working?

Domain?

Css and js files have been minified successfully. But the HTML is not minified. Here is the domain: www.eayazilim.net.tr

Your HTML code appears to be minified. Cloudflare won’t drop new-lines, though.

2 Likes

Minified HTML

$ curl https://www.eayazilim.net.tr | grep charset
<meta charset="utf-8">

against the original one

$ curl https://www.eayazilim.net.tr --connect-to ::SERVER | grep charset
                <meta charset="utf-8">
1 Like

I couldn’t understand what this is. I don’t know much about curl, sandro :frowning: When I look at my website with view-source, I can’t see that the HTML has been shrunk.

I am afraid that’s not correct. Cloudflare dropped all whitespace, except for new-lines.

https://support.cloudflare.com/hc/en-us/articles/200168196-Using-Cloudflare-Auto-Minify has all on that.

1 Like

Why not a single line?

You might be connecting to the server instead of Cloudflare.

What’s the output of these commands?

ping eayazilim.net.tr
ping www.eayazilim.net.tr

Oh right. The server IP address appears in my hosts file. I’ve just corrected. But as I said why doesn’t it shrink in one line.

Because that’s not how it works. Refer to the posted link.

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