Urgent.News

What's breaking now, across hundreds of outlets.

Tech

One page, four addresses: the SEO bugs your browser can't show you

I audited a site I built last week. Fifty-four pages, mostly hand-written HTML, deployed on Cloudflare. I ran Lighthouse first, got a number I was happy with, and closed it. Then I opened a terminal and pulled the raw HTML of a single page. That is where the evening went sideways. The page had a canonical tag pointing at /blog-chinese-tones . The JSON-LD block on the same page pointed at…

One week after building a website, a reporter conducted an audit and discovered four significant SEO bugs that go unnoticed by browsers. The site, consisting of 54 pages mostly written in HTML and deployed on Cloudflare, initially scored well in Lighthouse tests, but a deeper investigation revealed the issues.

Bug 1 involved discrepancies in the canonical tag, JSON-LD block, and breadcrumb trail, all pointing to different URLs. Ninety-one URLs had JSON-LD blocks referencing "/blog-chinese-tones.html" while the canonical tag pointed to "/blog-chinese-tones". Additionally, breadcrumb items pointed to non-existent pages, creating four distinct descriptions of the same page, confusing crawlers.

Bug 2 stemmed from a static site with no caching, resulting in a 95KB page taking 40 seconds to load since it was regenerated upon each deployment. This caused crawlers to time out and consider the page non-existent. The reporter set an edge cache with a 4-hour TTL and a browser TTL of 10 minutes to mitigate the issue.

Bug 3 centered around a library containing 642 character cards, weighing 136KB. The content was stored in a JavaScript array, making it invisible to crawlers. Switching to a build-time rendered table improved load times and visibility for search engines.

Bug 4 involved a missing "sameAs" link pointing to the author's organization, which lacked a name, author page, or external account. This issue affected the site's overall value, as search engines could not reliably connect the author's work.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Not Every Run That Claimed "Verified Live" Actually Checked the URL

On November 22nd I shipped a fix to my own publishing pipeline: never trust the dev.to API's 201 response as proof an article is actually live.

  • Reporter changed publishing pipeline to verify live articles via HTTP GET
  • Four runs between Nov 24-25 omitted verification log entries
  • Script testing skipped runs found all returned 200 status codes

More from Thursday 26 November →