[NSFW] Enabling “Minify HTML” has no effect

[ad_1]

Again, thanks for your great plugin.

When I enable “Minify HTML” in basic settings, it has no effect. HTML is not minified. However, when I enable that setting and “Optimize HTML via Dom Parser – Improves HTML minification efficiency.” then minification works, but the HTML seems a bit off when using the DOM parser.

For instance, the closing </body> and </html> tag are removed. I’d prefer the non-DOM parser implementation anyway (at least to compare against).

BTW, whichever minify method is used, could you please append the HTML powered by comment at the end so that it’s possible to tell if Powered Cache’s caching is active on that page. Maybe a more concise one-liner, like the following:

</body></html><!-- Cache served by Powered Cache, Last modified: Fri, 03 May 2024 01:57:08 GMT -->

Testing on Windows dev machine, WordPress 6.5.2, Powered Cache 3.4.4, PHP 8.1.

Thanks.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer