Browse Source

删除next.config.ts header配置中关于category和product页面的缓存配置

fogwind 3 ngày trước cách đây
mục cha
commit
db6ff1d688
1 tập tin đã thay đổi với 0 bổ sung22 xóa
  1. 0 22
      src/utils/constants/server.ts

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

@@ -29,28 +29,6 @@ export const configHeader = [
     ],
   },
   // Cache dynamic pages - shorter cache for frequently updated content
-  {
-    source: "/category/:path*",
-    headers: [
-      {
-        key: "Cache-Control",
-        value: "public, s-maxage=3600, stale-while-revalidate=86400",
-      },
-    ],
-  },
-  {
-    source: "/product/:path*",
-    headers: [
-      {
-        key: "Cache-Control",
-        value: "public, s-maxage=3600, stale-while-revalidate=86400",
-      },
-      {
-        key: "Vary",
-        value: "Accept-Encoding",
-      },
-    ],
-  },
   {
     source: "/checkout/:path*",
     headers: [