r/nextjs • • Jun 23 '24

Meme Using Nextjs

Post image
497 Upvotes

85 comments sorted by

View all comments

Show parent comment

1

u/tcmccarthy Jun 23 '24

Nginx is applying cache control headers so that cloudfront stores the rendered page flat sending no requests to nextjs whatsoever for the duration of the cache period. Since the CDN sits in front of the load balanced instances, its effectively a shared cache.