Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to force image (cache) update in README.rst on GitHub

Tags:

github

readme

In one of my project I'm using an external image link to display a screenshot via the GitHub page, which automatically parses the README.rst

GitHub page of ROyWeb

I updated this screenshot on my web server several times in the last weeks and I just realised that it is not updated on the GitHub page since... well I think it never updated ;-) GitHub somehow downloaded the image and loads it from it's cache servers.

Within the README.rst, there is clearly the correct link:

Actual link to the ROyWeb screenshot

Which you can confirm, when you load the raw file:

raw README.txt on GitHub

But when I check the URL of the displayed image on the GitHub page, I get:

GitHub cached screenshot of ROyWeb

Does anyone know how to force a "recache"?

like image 370
tamasgal Avatar asked Nov 12 '14 22:11

tamasgal


1 Answers

curl -X PURGE {url of cached badge image} 
like image 58
Alex Skrypnyk Avatar answered Sep 21 '22 23:09

Alex Skrypnyk