Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    don’t know how afhrefs works, but as the static JS file is not really missing, this rather seems a problem on ahrefs side, no? 🙂

    Thread Starter rosscollins

    (@rosscollins)

    Thanks for responding so quickly! I’m not very techy so don’t know how to tell if the static JS is missing or not? Is anything broken from auto-optimizers side to be giving this 410 error on 100 of our pages? I’m worried it’s going to effect our rankings/SEO!

    Also, apologies, in my initial message I only shared the JS link that’s giving a 410 error. Here’s the CSS link that’s having a 410 error as well: https://sunaccounts.com/wp-content/cache/autoptimize/css/autoptimize_d6be1115986adf6c9946e10a102e54e6.css
    It’s the same JS & CSS link across all pages that’s creating the 410 error.

    I’m not sure if this helps you or not, but this is what ahrefs says for broken JS:

    Some pages on your website link to JavaScript file URLs that return one of the 4xx or 5xx HTTP status codes to our crawler.

    Broken JS files will not be rendered on your pages.

    How to fix

    Most likely, the JS file had been moved, renamed, or deleted but the link to it was not modified.

    Review the pages that have a broken link to the JS file and update or remove it.

    For 5xx HTTP status codes (server errors), you might need to address your web developer or hosting provider.`

    And for broken CSS:

    Some pages on your website link to CSS file URLs that return one of the 4xx or 5xx HTTP status codes to our crawler.

    Broken CSS files will not apply the necessary styles to your pages.

    How to fix

    Most likely, the CSS file had been moved, renamed, or deleted but the link to it was not modified.

    Review the pages that have a broken link to the CSS file and update or remove it.

    For 5xx HTTP status codes (server errors), you might need to address your web developer or hosting provider.`

    • This reply was modified 4 years, 11 months ago by rosscollins.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well, when testing in the browser both the first and the second like work and return a HTTP 200 response instead of the HTTP 410 ahrefs sees (see below screenshot), so the conclusion is that from the point of view of Autoptimize (and your users) all is OK.

    why ahrefs is not able to see this is not something I can explain (but do ask them) I’m afraid …

    Thread Starter rosscollins

    (@rosscollins)

    Thanks for coming back to me so quickly 🙂 I’ll see if I can raise it with Ahrefs

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! 🙂

    frank

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Ah, one idea that might be worth investigating; in some cases (although actively discouraged by the Googles) access to JS/ CSS files is blocked for bots/ search engines, maybe that is what’s happening here (Autoptimize does not do this)?

    Thread Starter rosscollins

    (@rosscollins)

    Thanks for the suggestion! I’m going to wait for the next ahrefs crawl and see if it’s still flagging it as an issue. If it is, I’ll forward your suggestion onto a developer who’s more technically qualified to check than me!
    Thanks again

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

The topic ‘Broken JavaScript/CSS’ is closed to new replies.