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:
request.path
request.method
request.scheme
request.query
request.querystring
request.origin_query_string
request.origin_query
request.origin_path
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'23export default new Router()4 // This rule will not be listed in the cache-manifest.js file5 .get("/static/my-image.png", {6 caching: {7 max_age: "1h", // Caches the response on the edge for 1 hour8 },9 comment: "cache-manifest-ignore"10 })