Caching is a big subject and it can get pretty complicated. Luckily, the browsers have done all the really hard work for us and we just need to #useThePlatform.
There are three types of caches you'll likely deal with in Remix applications:
- Application-level caches that you implement in your own code.
- Browser caches you can control through the
Cache-Control
header. - CDN caches you also can control through the
Cache-Control
headers.