mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 22:43:42 +08:00
optimize
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user