#Cloudfront caching

1 messages · Page 1 of 1 (latest)

tough totem
#

In next@14 app router, is it possible to cache a dynamically rendered page in cloudfront?

ember nimbusBOT
#

Hi @tough totem. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information about caching a dynamically rendered page in Cloudfront with Next.js version 14 App Router.

However, it's important to note that in Next.js, whether a route is cached or not at build time depends on whether it's statically or dynamically rendered. Static routes are cached by default, whereas dynamic routes are rendered at request time, and not cached (source (https://nextjs.org/docs/app/building-your-application/caching#static-and-dynamic-rendering)).

For more detailed information, you may want to refer to the official Next.js documentation on caching (https://nextjs.org/docs/app/building-your-application/caching).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: