Skip to content

Commit

Permalink
Document cache options
Browse files Browse the repository at this point in the history
  • Loading branch information
Siegrift committed Nov 25, 2023
1 parent 50082b3 commit 35f7f73
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions packages/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,22 @@ The delay in seconds for the endpoint. The endpoint will only serve data that is
The maximum number of signed data entries that can be inserted in one batch. This is a safety measure to prevent
spamming theAPI with large payloads. The batch is rejected if it contains more entries than this value.

#### `cache.maxAgeSeconds`
#### `cache`

The maximum age of the cache header in seconds.
Configures the cache for the API endpoints.

Defaults to no cache.

##### `type`

The type of the cache. Options:

- `browser` - Uses the browser cache.
- `cdn` - Uses the CDN cache. The CDN network needs to support `cdn-cache-control` header.

##### `maxAgeSeconds`

The maximum age of the cache in seconds. The cache is cleared after this time.

#### `allowedAirnodes`

Expand Down

0 comments on commit 35f7f73

Please sign in to comment.