Akamai Fast Purge Utility
Node Plugin for using Akamai Fast Purge via EdgeGrid
Usage
const FastPurge = ; const Purge = FastPurge;
OAUTH PROPERTIES
For these values, please see Akamai documentation.
Property | Description |
---|---|
client_token |
client_token in Akamai documentation |
client_secret |
client_secret in Akamai documentation |
access_token |
access_token in Akamai documentation |
host |
host in Akamai documentation |
Methods
.submit()
Submit a cache purge to Akamai.
Purge ;
PURGE_OBJECTS
(Array
) Collection of content objects -- url
, cpcode
, or tag
-- to invalidate or delete.
PURGE_OPTIONS
Property | Values | Description |
---|---|---|
operation |
invalidate /delete |
(optional) [ default: invalidate ] |
type |
url /cpcode /tag |
(optional) [ default: url ] |
network |
staging /production |
(optional) [ default: production ] |
Examples
Invalidate URLS:
Purge;
Delete CPCODE:
Purge;