mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
optimize
This commit is contained in:
parent
f9d2d2ecbb
commit
bb4a281407
@ -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 () => {
|
||||
|
Loading…
Reference in New Issue
Block a user