Cache APIs

The following APIs enable developers to build apps on Compute using Fastly's global cache network.

Core Cache API

The Core Cache API uses languages like Rust, JavaScript, and Go to expose the API primitives used to implement cache applications.

HTTP Cache API

Limited Availability

The HTTP Cache API gives developers the ability to control caching within the context of an HTTP request through actions like Cache-Control parameter customization and request and response header modification.

Simple Cache API

Limited Availability

The Simple Cache API exposes a key-value cache interface developers can use to cache small, arbitrary data to help reduce repetitive compute costs.

Limitations and Considerations

Compute trials and paid accounts include the use of Cache APIs. A monthly average of up to 5 cache operations per Compute request are included. A cache operation is a read from cache or an operation where a read is followed by a write. There is no separate cap on the maximum number of cache operations per individual Compute request. Contact support@fastly.com if you need to raise the included number of monthly average cache operations.

Was this guide helpful?

Do not use this form to send sensitive information. If you need assistance, contact support. This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.