This commit is contained in:
sijinhui 2024-04-17 14:10:54 +08:00
parent f9d2d2ecbb
commit bb4a281407

View File

@ -106,6 +106,18 @@ const IndexHeaders = [
const ForceCacheHeaders = [
{ key: "Cache-Control", value: "max-age=2592000, s-maxage=86400"}
]
const NoCacheHeaders = [
{ key: "Cache-Control", value: "no-cache"}
]
nextConfig.headers = async () => {
return [
{
source: '/',
headers: NoCacheHeaders,
}
]
}
if (mode !== "export") {
// nextConfig.headers = async () => {