Skip to content
This repository has been archived by the owner on Aug 21, 2018. It is now read-only.

recursivefunk/invalidatejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No longer maintained. Other modules handle this and much more

invalidatejs

Sends invalidation requests to Amazon's CloudFront Service

Install

npm install invalidatejs

Usage

  var invalidate = require('invalidatejs');

  var config = {
    resourcePaths: ["/jquery.js", "/custom.js"],
    secret_key: "mY$ecretKEY",
    access_key: "accesskey",
    dist: "target_distribution"
  };

  invalidate(config, function (err, statusCode, body) {

    /*
      err - an error occured of course!
      statusCode - status code returned from the post request to AWS
      body - body of the response from AWS in JSON form
    */

  });

About

[Unmaintained] Sends invalidation requests to Amazon's CloudFront Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published