Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.35 KB

ContentApi.md

File metadata and controls

52 lines (36 loc) · 1.35 KB

Fastly.ContentApi

const apiInstance = new Fastly.ContentApi();

Methods

Note

All URIs are relative to https://api.fastly.com

Method HTTP request Description
contentCheck GET /content/edge_check Check status of content in each POP's cache

contentCheck

contentCheck({ , [url] })

Retrieve headers and MD5 hash of the content for a particular URL from each Fastly edge server. This API is limited to 200 requests per hour. If the content takes too long to download, the hash will be set to error-timeout-$pop. If the response is too large, it will be set to warning-too-large-$pop.

Example

const options = {
  url: https://www.example.com/foo/bar,
};

apiInstance.contentCheck(options)
  .then((data) => {
    console.log(data, "API called successfully.");
  })
  .catch((error) => {
    console.error(error);
  });

Options

Name Type Description Notes
url String Full URL (host and path) to check on all nodes. if protocol is omitted, http will be assumed. [optional]

Return type

[Content]

[Back to top] [Back to API list] [Back to README]