|
|
@@ -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",
|
|
|
- },
|
|
|
- ],
|
|
|
- },
|
|
|
];
|