Beantin webbkommunikation

Beantin Beta Blog

Experiments, investigations, and tests of web things
January 15, 2013

Clearing LinkedIn’s link sharing preview cache

When sharing a link on LinkedIn a preview is generated. This preview uses data from your webpage (Open Graph metadata if present). Sometimes you want to optimise this text, so you test the page first.

linkedin-sharing-preview-520x94

Unfortunately LinkedIn caches the data it retrieves the first time the link is previewed and keeps it cached for a week!

LinkedIn achknowledged this limitation almost two years ago but there still isn’t any tool available to clear the preview cache.

Facebook

Facebook cache preview data too, but with Facebook it’s possible to reset the data by putting your URL through the debugger (formally “Lint”).

Google+

Google+ naturally caches everything too, but Google+ honour the caching directives of your page and resources – as they should.

So when testing with G+ you should if possible make sure you’ve set short cache lifetimes on your webpage and images.

LinkedIn

The only way to “clear” the sharing preview cache for LinkedIn is to trick LinkedIn into thinking your page is a different (and new) page.

This is done by adding a made-up parameter to the link. It doesn’t affect your webpage, but it does force the metadata to be re-fetched.

Example:

Original link: http://beantin.se/consultant-resume
"New" link: http://beantin.se/consultant-resume?1
Related Posts Plugin for WordPress, Blogger...
Theme Beantin created by James Royal-Lawson. Privacy Policy