Tech
Why Your og:image Works in the Browser but Not for Crawlers: Relative Paths, Redirects and Wrong Content-Types
There is a special kind of frustration reserved for the image that works. You open https://yoursite.com/og/launch.png in a tab, it loads instantly, it looks great. You paste the page into LinkedIn and get a headline, a domain, and no picture.
Most write-ups about broken link previews stop at "make sure og:image is set". This post is about the next layer: the tag is set, the file exists, and the crawler still can't use it. Almost every case I've debugged comes down to one of six URL-level ...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to