feat: stale-while-revalidate for apis

This commit is contained in:
DIYgod
2023-08-23 19:43:36 +01:00
parent fe77b2fad6
commit a6478baddf
+9
View File
@@ -83,6 +83,15 @@ module.exports = withBundleAnalyzer({
},
],
},
{
source: "/api/:path*",
headers: [
{
key: "Cache-Control",
value: "s-maxage=1, stale-while-revalidate",
},
],
},
]
},
staticPageGenerationTimeout: 3600,