How to force cache purge of Twitter Card's bots?
I just managed to force it to update mine:
https://cards-dev.twitter.com/validator
In validating it updates its cache.
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.
- Add Card metadata to a page
- Tweet URL to that page
- Refresh your browser to view the Card contents on your timeline
- Change Card metadata on the page
- Take the same URL and runs it through bit.ly
- Tweet the new bit.ly URL
- 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.
There's actually a simpler solution than what is proposed by Twitter:
- Go to https://cards-dev.twitter.com/validator
- Type in the URL you want to update, BUT with a change. For example, add
?utm_source=Whatever
- Then just reloaded page with whatever tweet had your Twitter card
When Twitter validator encounters this different URL, it clears its cache and fetches the new version.