mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 14:33:41 +08:00
optimize
This commit is contained in:
@@ -106,6 +106,18 @@ const IndexHeaders = [
|
|||||||
const ForceCacheHeaders = [
|
const ForceCacheHeaders = [
|
||||||
{ key: "Cache-Control", value: "max-age=2592000, s-maxage=86400"}
|
{ 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") {
|
if (mode !== "export") {
|
||||||
// nextConfig.headers = async () => {
|
// nextConfig.headers = async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user