Setting Cache-Control Headers
Cache-Control gives your front-end applications instructions for caching requests and responses to your app. Optimizing Cache-Control for Atlas will help with the deliverability of your content between the front-end and WordPress backends. To determine how to set up Cache-Control, see the MDN Web documentation for Cache-Control.
Front-end applications using Next.js add immutable Cache-Control header resources, with
max-age being when a resource remains in the cache in seconds. For example, any resources found in
/_next/static/ stay cached for
max-age=31536000,immutable. Other static resources such as
/public/images/ stay cached for
For any custom resources you want to cache, add your custom headers outside of
/_next/static/. For instructions, refer to the Vercel headers documentation.