≡ Menu

Curl Shell Script To Purge Cache From Bitgravity Content Delivery Network

A content delivery network or content distribution network (CDN) is a system of computers containing copies of data, placed at various points in a network so as to maximize bandwidth for access to the data from clients throughout the network. Please note that the following script will only work with bitgravity CDN. You need to get API access keys using bitgravity portal.

How do I access this script?

Simply run it as follows to purge a cdn url called http://files.cyberciti.biz/static/css/layout.css:
$ ./script files.cyberciti.biz /static/css/layout.css
Sample outputs:

How do I purge lage number of urls?

Create a text file called urls.txt with urls as follows one per line:

Run the script as follows:

Run it as follows:
$ ./bulk_purge.sh

{ 0 comments… add one }
Security: Are you a robot or human?

Leave a Comment