Next.js Developer interview question

Design the caching strategy for a Next.js e-commerce site with product pages, a cart and personalised recommendations.

Design Asked in Frontend Engineer · Full Stack Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Cache what's shared and change it on events: statically render or cache product and category pages and revalidate them by tag when a product changes; keep the cart and anything personal dynamic and uncached; stream personalised recommendations in a separate dynamic section so the rest of the page stays cached. Put a CDN in front for assets and cacheable HTML.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Next.js Developer questions

← All Next.js Developer questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake