How to clear the cache of LinkedIn sharer manually

南楼画角 提交于 2019-12-01 15:57:44

Content shared via LinkedIn is cached by LinkedIn's servers for a period of ~7 days. There is presently no way to manually clear the cache other than waiting for it to expire.

One possible short-term work-around is to modify your URL with a "garbage" parameter at the end of it, e.g. http://example.com/mypage.html?donothing=1

Provided your site does not change the content displayed based on the parameter you append, LinkedIn will see that as a different URL and you won't get the old cached version.

LinkedIn provides Post Inspector which obviously clears the preview cache.

Just debug your cached url in https://www.linkedin.com/post-inspector/inspect/.

It worked for me.

I've just found a way to force linkedin to fetch a fresh version of the page. Just create a redirect to your destination page and share the redirect page.

For example:

If your page that you want to share is: http://hrm.mysitedemo.co.uk

Create a redirect for a page: http://hrm.mysitedemo.co.uk/share-li to go to http://hrm.mysitedemo.co.uk

And then share the http://hrm.mysitedemo.co.uk/share-li on linked in. This way linkedin will think it's a new page and it'll get a fresh page version.

It's easy to do if you're using wordpress, just install a redirection plugin like this one for example: https://wordpress.org/plugins/redirection/

To fix this you simply need to add a query string to the end of the URL. For example -

Old URL - https://gradbee.com/project/gradbee-campus-ambassadors-2017/

New URL - https://gradbee.com/project/gradbee-campus-ambassadors-2017/?1

In my case, the link didn't refetch because I had a RewriteRule (to force www) with [L,R=301] in .htaccess. Changing it to simply [L,R] made the preview change.

Go to https://www.linkedin.com/post-inspector/ Insert URL of your page and click "Inspect". That's all)

There is a way to clear the cache. Just share the link again making sure you post to at least one group and to your update. It will update the cache :)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!