Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear the cache of LinkedIn sharer manually

At using share function via LinkedIn API, one and the same picture is transfered for each page of the website http://hrm.mysitedemo.co.uk
The picture is cached on the server. The address of this picture on server is: link
Address that leads to share dialog window is : link
Could you please tell how to to clear the cache manually?

like image 894
ChessBarbarian Avatar asked Nov 28 '14 14:11

ChessBarbarian


People also ask

How do I clear my LinkedIn preview cache?

Simply head over to the LinkedIn Post Inspector, input the URL of the post or page you are needing to check, and hit “Inspect.” It will automatically fetch all new information about that post, clearing the cache on the LinkedIn site.

How do I force a cache clear?

But you can bypass the cache and force a complete refresh by using some simple hotkeys: Windows and Linux browsers: CTRL + F5. Apple Safari: SHIFT + Reload toolbar button. Chrome and Firefox for Mac: CMD + SHIFT + R.

How do I fix my linked in preview link?

To fix this, you should go to https://www.linkedin.com/post-inspector/ and enter the URL of the job to update it.


3 Answers

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.

like image 127
Jan Kolář Avatar answered Sep 17 '22 17:09

Jan Kolář


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.

like image 36
Justin Kominar Avatar answered Sep 21 '22 17:09

Justin Kominar


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/

like image 27
Mike Avatar answered Sep 17 '22 17:09

Mike