misterhaan / track7.org

source for my personal website track7.org.
https://www.track7.org/
MIT License
0 stars 0 forks source link

use cloudflare api to purge css and js files from cache after git pull updates them #12

Closed misterhaan closed 7 years ago

misterhaan commented 8 years ago

maybe it’s a timing issue, but often when i update track7 from github and some of the changes are in a css or js file, i still get the old version of the file until i go to cloudflare and tell it to purge that file from the cache. git pull returns a list of modified files, so i should be able to parse that and use the cloudflare api to purge whatever needs to go.