Created
May 11, 2018 18:30
-
-
Save rindeal/94f70761eae98a1856e78be2064c9d41 to your computer and use it in GitHub Desktop.
GitHub Camo (Varnish cache) Purge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
curl -so - https://github.com/... | \ | |
pup 'img attr{src}' | \ | |
awk '/:\/\/camo.githubusercontent.com\// { if ( !cache[$0] ) { print; cache[$0]=1; } }' | \ | |
xargs curl -X PURGE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment