I am seeing prerendering requests fail with
[failed] [200 - x-xdn-cache-status="no-max-age"]
Do we have to have a maxAgeSeconds
set on the route for it to prerender?
I am seeing prerendering requests fail with
[failed] [200 - x-xdn-cache-status="no-max-age"]
Do we have to have a maxAgeSeconds
set on the route for it to prerender?
Yes, all prerendered pages should be cached by using the cache method in your router with edge.maxAgeSeconds
set.
For example:
import { CustomCacheKey } from '@xdn/core/router'
router.get('/some/path', ({ cache }) => {
cache({
edge: {
// Sets the TTL for a response in the XDN's edge cache
maxAgeSeconds: 60 * 60 * 24
}
})
})