To achieve Incremental static site generation in remix
, add the header Cache-Control: s-maxage=60, stale-while-revalidate
to your responses.
This tells the CDN to cache for one minute, after that keep sending the stale response while while it revalidates with the origin server
Top comments (0)