Skip to content

Purge CloudFlare Cache Grunt Task. This package is a modification of strathausen/grunt-cloudflare

License

Notifications You must be signed in to change notification settings

rodolfosaraiva/cloudflare-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grunt-cloudflare

CloudFlare Grunt Task talking to the CloudFlare API. The default action is to purge the CloudFlare cache. This package This package is a modification of grunt-cloudflare. Credits for strathausen.

Options

cloudflare: {
  /* Action, default is to purge the cache */
  a: 'fpurge_ts',
  /* CloudFlare credentials */
  /* API key */
  tkn: process.env.CLOUDFLARE_API_KEY,
  /* CloudFlare e-mail */
  email: process.env.CLOUDFLARE_EMAIL,
  /* Domain */
  z: process.env.CLOUDFLARE_DOMAIN  
  /* Files to purge the cache */
  url: ['http://www.example.com/style.css', 'http://www.example.com/app.js']
}

For more options, see the CloudFlare API Docs.

Modifying this plug-in to support more CloudFlare actions should be straight forward. Don't hesitate sending in a pull request. if you need another feature. Purge CloudFlare Cache Grunt Task. This package is a modification of strathausen/grunt-cloudflare

About

Purge CloudFlare Cache Grunt Task. This package is a modification of strathausen/grunt-cloudflare

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages