Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force cache purge of Twitter Card's bots?

Tags:

twitter

Literally I am looking for something like this:

https://developers.facebook.com/tools/debug/

But for Twitter Cards.

I put something wrong on my pages and I need them to be refreshed asap. But after google I only found this post:

https://dev.twitter.com/cards/troubleshooting

It seems Twitter only offers a weekly update. Is there any manual way to purge the wrongly cached pages?

Thanks

like image 824
AGamePlayer Avatar asked Jan 29 '15 05:01

AGamePlayer


People also ask

How long does it take for twitter to update your card?

Refreshing a Card in a Tweet The Twitter web crawler re-indexes the Card tag information on your page roughly every seven days.

How do I refresh my twitter card?

One solution is to use Twitter's card validator on your site. Running the site it through the validator seems to refresh the cache for your summary cards.


2 Answers

I just managed to force it to update mine:

https://cards-dev.twitter.com/validator

In validating it updates its cache.

like image 61
John Connor Avatar answered Oct 24 '22 16:10

John Connor


Following the steps in Twitter Card's Troubleshooting Guide actually forced the cache to clear in my case.

When testing and/or iterating on Cards, it is sometimes helpful to test updates on your timeline. It may be possible to use the following technique to refresh the cache with your most up-to-date changes of your page’s Card.

  1. Add Card metadata to a page
  2. Tweet URL to that page
  3. Refresh your browser to view the Card contents on your timeline
  4. Change Card metadata on the page
  5. Take the same URL and runs it through bit.ly
  6. Tweet the new bit.ly URL
  7. Refresh your browser to view the updates

Additionally, you can create multiple bit.ly URLs to allow for repeat testing.

I generated a bit.ly link to the page, then tweeted it, and then quickly deleted that tweet. It cleared the cache right away for the other tweet.

like image 38
Pat Migliaccio Avatar answered Oct 24 '22 16:10

Pat Migliaccio