next config no cache
This commit is contained in:
+6
-10
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user