next config no cache

This commit is contained in:
hamid zarghami
2025-12-27 14:49:10 +03:30
parent 89cffe3603
commit ad5bb7bf27
+6 -10
View File
@@ -1,5 +1,4 @@
import type { NextConfig } from "next";
import withPWA from "next-pwa";
const nextConfig: NextConfig = {
output: "standalone",
@@ -20,6 +19,11 @@ const nextConfig: NextConfig = {
{
source: "/:path*",
headers: [
{
key: "Cache-Control",
value:
"no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0",
},
{
key: "X-DNS-Prefetch-Control",
value: "on",
@@ -49,12 +53,4 @@ const nextConfig: NextConfig = {
],
};
const withPWANextConfig = withPWA({
dest: "public",
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
maximumFileSizeToCacheInBytes: 5 * 1024 * 1024, // 5 MB
})(nextConfig);
export default withPWANextConfig;
export default nextConfig;