Caching dynamically rendered page in cloudfront
Unanswered
Horned oak gall posted this in #help-forum
Horned oak gallOP
Hello, in next@14 app router is it even possible to cache a dynamically rendered page in cloudfront? I know it seems unintuitive but if someone can verify then I would appreciate it a lot. Because even with all the cache key set, cache-control, etc,
No content is displayed. Note that this was tested with both caching and non where cache-control is set to no-store, no-cache, etc basically the default the cache-control set by next. Same page is rendered on "Hit"
X-Cache is always Miss from cloudfront and the moment it hits the cache for whatever reason (?), the page renders with only this in the page:0:["LJipIwaMT6QiIJXFJv1Dy",[["children",["locale","en","d"],"children","__PAGE__",["__PAGE__",{}],null,null]]]No content is displayed. Note that this was tested with both caching and non where cache-control is set to no-store, no-cache, etc basically the default the cache-control set by next. Same page is rendered on "Hit"