Loader vs Route Cache Headers in Remix

Roger Stringer / July 21, 2022

1 min read79 views

Some personal recommendation is to never cache at the HTTP layer if you are not 100% sure of what you are doing. A bad Cache Control value could make a user not be able to use new data on a loader or always get the same old HTML.

Useful post from Sergio Xalambrí on loader vs route cache headers in Remix, this was something I had to dig into when I did the migration of this site to Remix with Strapi acting Headlessly so wanted to share it.