Prerendering a page per device, and the cache key that has to agree
DEV Community
Prerendering a page per device, and the cache key that has to agree
A prerendered page in the Next.js App Router is one file per URL, and device specific markup needs two. Generating the extra routes keeps the public URL intact. Making your device split agree with the cache in front of it is the part nobody warns you about.
0 comments
No comments yet.