• Resolved jkunkel

    (@jkunkel)


    I might have the wrong expectation, but when I view the source of a cached page, it doesn’t look like the HTML has been “minified” at all. I could be wrong, but I see blank lines, extra spaces, etc. Is this expected or should I be getting more?

    Thanks.

    https://ww.wp.xz.cn/plugins/bodi0s-easy-cache/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Budiony Damyanov

    (@budiony)

    Not all blank lines and extra spaces are minified and this is on purpose.

    In fact, there could be more compression applied to the HTML source, but this breaks the inline *JavaScript* code and *CSS*.

    Put in short – the plugin replace the following combinations
    "\t","\r","\t\r","\r\t" from the white-space range.

    Plugin Author Budiony Damyanov

    (@budiony)

    …and it replaces with regular expressions the more that one space with one only (this is the regex pattern preg_replace('~(\s)\1+~', '$1', $buffer);).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Minify Expectations’ is closed to new replies.