๐Ÿฟ They changed Caching AGAIN in Next.js 15

Hey friend,

Great news! I've locked in a new date for the Live Next.js Workshop โ†—๏ธ. I'll be announcing some exciting updates and exclusive Next.js 15 content for the Next.js Workshop Waitlist.

โ€‹Click here to add yourself so you don't miss out โ†—๏ธโ€‹
โ€‹

๐Ÿฟ Our Weekly Snack: Next.js 15 and Caching: A Paradigm Shift

Previously (Next.js 14), fetch requests automatically defaulted to caching and you had to purge your cache to opt out of caching.

Remember this?

It's the default option I'm talking about - cache: force-cache.

Next.js 15 introduces a fundamental shift: fetch requests are no longer cached by default ๐Ÿ˜ณ.

This empowers developers with greater control over caching strategies, but manual configuration might be required for specific use cases.

Considerations for Upgrading Applications

Upgrading from Next.js 14 to 15 could potentially disrupt applications that rely on the previous caching behaviour.

To maintain consistent behaviour, you may need to explicitly specify cache: 'force-cache' for relevant fetch requests.
โ€‹

๐Ÿคซ Latest Frontend News

Tailwind CSS released a new version of `prettier-plugin-tailwindcss` this week! Now they automatically clean up unnecessary whitespace in class lists โ€” huge quality of life improvement!

โ€‹You can read all about them here โ†—๏ธโ€‹

Seamlessly move data fetching between client and server in SWR โ†—๏ธโ€‹

AI News: All ChatGPT Free users can now use browse, vision, data analysis, file uploads, and GPTs ๐Ÿ˜ณ.

โ€‹Vercel announced it's firewall โ†—๏ธ in their Vercel ship event

โ€‹Remix is now React Router V7 ๐Ÿค The Remix team is merging Remix with React Router. This means that the features from Remix will be included in the next version of React Router (v7). Users of Remix can keep using it or switch to React Router v7 with a simple import change.

โœ… Dev Productivity Tip

โ†’ To remove unused imports in VS Code:
โ€‹
Use ๐ŸŽ OPTION + Shift + O / ๐ŸชŸ๐Ÿง Shift + Alt + O

๐Ÿ’– Weekly Youtube Videos

Check it out and subscribe to my channel โ†—๏ธ for more Frontend, Leadership and Career Development content.

Modern Authentication Tutorial with Clerk & Lucia

video previewโ€‹

Next.js 15 Crash Course
โ€‹
โ€‹

video previewโ€‹

โ€‹

What do you think of today's Newsletter? Simply click on one of the links below.

A Frontend Newsletter that you'll love! ๐Ÿ’–