• Resolved woorooo

    (@woorooo)


    Hi,

    I would like to start saying that Minify HTML is an amazing plugin and does wonders when combined with WP Rocket caching. However I started getting an error recently in Google Search Console and mainly error appears when I enable “Remove relative domain from internal URLs” option.

    What happens is that it also strips the structured data of pages and apparently it’s not good for google.

    It’s a great option which helps reduce the html size even further and I was wondering if there is a way to tune it, so that it doesn’t touch the structured data.

    Would greatly appreciate your help.

    Thanks,

    Roman.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tim Eckel

    (@teckel)

    The problem is the algorithm required to ignore certain parts of code. And while it’s a problem for you for just structured data, for others it’s something else. There’s an infinite number of things that maybe should be excluded. Therefore, while something could be done for your unique case, it wouldn’t help anyone else, and they would have other unique exceptions.

    Instead, the option is to just disable features which conflict with your unique situation. That’s why the option is there for you to disable, to allow it to still work for you.

    Thread Starter woorooo

    (@woorooo)

    Got it, it makes sense, I just thought that there might be some other solution besides disabling the option completely, since the majority of people are using breadcrumbs and other types of structured data. Thank you for your reply.

    Plugin Author Tim Eckel

    (@teckel)

    I’ve never even heard of “structured data”. I’ve used breadcrumbs for a decade, never used structured data and never had a conflict.

    Thread Starter woorooo

    (@woorooo)

    No problem Tim, I probably communicated poorly the problem.

    I meant the structured data that Yoast SEO plugin inserts for Google to recognize the breadcrumbs and that Google uses to display breadcrumbs in search results. You can find more info about what Yost does here https://yoast.com/breadcrumbs-seo/

    And since pretty much any google search returns top results with breadcrumbs like on this screenshot https://ibb.co/2Kpm9Ph I assumed that everyone uses it.

    No problem, I still love the plugin, it’s super fast, thank you and have a good one ??

    Thread Starter woorooo

    (@woorooo)

    Also, just came across this thread https://stackoverflow.com/questions/38434422/semantics-of-relative-urls-in-schema-org-breadcrumbs-in-json-ld

    Apparently it’s not just me, not long ago google validator indeed started demanding absolute URLS instead of relative ones for structured data (schema.org).

    Plugin Author Tim Eckel

    (@teckel)

    That’s just an injected JSON file. As it’s in a script, you can either disable JavaScript minification or disable removing relative links. Those features are designed specifically to address custom things like this.

    Thread Starter woorooo

    (@woorooo)

    Got it Tim, thank you ??

    Just one more question, I’ve read that sometimes minification plugins that rely on sessions may not working properly with some caching types like Varnish. Is it something that should be taken into consideration with the way your plugin works? Or is it safe to use with any caching?

    Plugin Author Tim Eckel

    (@teckel)

    Minify HTML tries to be the last thing to run. Basically, right before sending to the browser, Minify HTML runs to compress the content. So it’s designed to run after caching. But, it’s possible there could be a conflict with a certain caching plug-in I guess. I’ve run a few caching plug-ins without issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Google Search Console Errors’ is closed to new replies.