Browse Source

合并master

fogwind 19 hours ago
parent
commit
7ddab2cf95
1 changed files with 0 additions and 54 deletions
  1. 0 54
      src/utils/constants/server.ts

+ 0 - 54
src/utils/constants/server.ts

@@ -29,60 +29,6 @@ export const configHeader = [
     ],
   },
   // Cache dynamic pages - shorter cache for frequently updated content
-  {
-    source: "/checkout/:path*",
-    headers: [
-      {
-        key: "Cache-Control",
-        value: "private, no-cache, no-store, must-revalidate",
-      },
-    ],
-  },
-  {
-    source: "/customer/:path*",
-    headers: [
-      {
-        key: "Cache-Control",
-        value: "private, no-cache, no-store, must-revalidate",
-      },
-    ],
-  },
   // Next.js static assets - long cache with immutable
-  {
-    source: "/_next/static/:path*",
-    headers: [
-      {
-        key: "Cache-Control",
-        value: "public, max-age=31536000, immutable",
-      },
-    ],
-  },
-  {
-    source: "/_next/image/:path*",
-    headers: [
-      {
-        key: "Cache-Control",
-        value: "public, max-age=31536000, immutable",
-      },
-    ],
-  },
   // Public folder assets - long cache
-  {
-    source: "/image/:path*",
-    headers: [
-      {
-        key: "Cache-Control",
-        value: "public, max-age=31536000, immutable",
-      },
-    ],
-  },
-  {
-    source: "/fonts/:path*",
-    headers: [
-      {
-        key: "Cache-Control",
-        value: "public, max-age=31536000, immutable",
-      },
-    ],
-  },
 ];