Skip to content

Gorokhov/gulp-ahcdn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-pixcdn

Gulp plugin to interact with the ahcdn.com API.

Usage

var gulp = require('gulp'),
    keycdn = require('gulp-keycdn');

Purge Zone Cache

gulp.task('purgeZone', function() {
    var options = {
		apiKey  : 'your_api_key',
		zoneId  : 'zone_id',
		method : 'get'
	};

    keycdn(options, {});
});

Purge Selected URLs

gulp.task('purgeURL', function() {
    var options = {
        apiKey  : 'your_api_key',
		zoneId  : 'zone_id',
		method : 'del'
	};

    var files = {
        urls: [ 'demo-1.kxcdn.com/lorem.css', 'demo-1.kxcdn.com/lorem.jpg' ]
    };

    keycdn(options, files);
});

For more details visit https://www.keycdn.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published