Edgio

Cache-Manifest.js File

The cache-manifest.js file is generated during deployment. It is used to automatically prefetch all links based on configured rules. This file is publicly available from the /__edgio__/cache-manifest.js path.
It exposes rules with the following features:
and conditions:
All other features and conditions are unsupported and will be ignored. Exclude a rule from this file by adding a cache-manifest-ignore comment to it.
Example:
JavaScriptroutes.js
1import { Router } from '@edgio/core/router'
2
3export default new Router()
4 // This rule will not be listed in the cache-manifest.js file
5 .get("/static/my-image.png", {
6 caching: {
7 max_age: "1h", // Caches the response on the edge for 1 hour
8 },
9 comment: "cache-manifest-ignore"
10 })