How to clear the cache of LinkedIn sharer manually
Asked Answered
A

7

12

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?

Agronomics answered 28/11, 2014 at 14:0 Comment(1)
Does this answer your question? How to clear Linkedin Share cache?Goto
A
14

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.

Actaeon answered 1/12, 2014 at 17:52 Comment(4)
Sometimes it seems that Linkedin designers once opened a book titled "how to pointlessly annoy users and developers and prevent them from using your service" and has been following it by the letter ever sinceParabola
Adding a suffix parameter works for me (tested March 2017).Vannoy
Works for me, as does dropping 'www'Valero
I just added ?_ at the end of the URL and it worked like a charm. The URL looked like https://example.com?_ so not too badQuote
P
11

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.

Pancreas answered 26/6, 2018 at 7:9 Comment(0)
G
2

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/

Grodno answered 16/3, 2017 at 11:30 Comment(2)
Similar to this solution, for us the trick was to use a URL shortener and pasting the short URL in. The shortened URL worked straight away and cleared the cache for the original URL!Valuable
This still works. Create a bit.ly link, paste the link into a status update and wait for the preview to load. Job done.Ottavia
S
0

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.

Suhail answered 6/6, 2018 at 7:27 Comment(0)
M
-5

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 :)

Meiny answered 3/3, 2016 at 10:48 Comment(0)
D
-5

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

Dexedrine answered 11/4, 2019 at 10:0 Comment(1)
This appears to be a dupe of Jan Kolar's answer.Citizenry

© 2022 - 2024 — McMap. All rights reserved.