expireTime
Source URL: https://nextjs.org/docs/app/api-reference/config/next-config-js/expireTime
expireTime
Section titled “expireTime”You can specify a custom stale-while-revalidate expire time for CDNs to consume in the Cache-Control header for ISR enabled pages.
Open next.config.js and add the expireTime config:
module.exports = { // one hour in seconds expireTime: 3600,}Now when sending the Cache-Control header the expire time will be calculated depending on the specific revalidate period.