From 29b10c6770ddd04b542520f6c6522dff62b92d25 Mon Sep 17 00:00:00 2001 From: Do Siki Date: Mon, 17 Aug 2026 17:36:47 +0200 Subject: [PATCH] feat: disable website caching --- proto/next.config.ts | 8 +++++++- proto/src/app/layout.tsx | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/proto/next.config.ts b/proto/next.config.ts index a0e7eaf..1bf1456 100755 --- a/proto/next.config.ts +++ b/proto/next.config.ts @@ -30,7 +30,7 @@ const nextConfig: NextConfig = { // Image optimization images: { formats: ['image/webp', 'image/avif'], - minimumCacheTTL: 60 * 60 * 24 * 30, // 30 days + unoptimized: true, }, // Security headers @@ -51,6 +51,12 @@ const nextConfig: NextConfig = { key: 'Referrer-Policy', value: 'origin-when-cross-origin', }, + { + key: 'Cache-Control', + value: 'no-store, no-cache, must-revalidate, max-age=0', + }, + { key: 'Pragma', value: 'no-cache' }, + { key: 'Expires', value: '0' }, ], }, ]; diff --git a/proto/src/app/layout.tsx b/proto/src/app/layout.tsx index 1141008..8652b17 100755 --- a/proto/src/app/layout.tsx +++ b/proto/src/app/layout.tsx @@ -1,6 +1,10 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; + +// The CMS must always expose the latest deployed content; do not retain route output. +export const dynamic = 'force-dynamic'; +export const revalidate = 0; import Header from "../components/Header"; import Footer from "../components/Footer"; import { ThemeProvider } from "../components/ThemeProvider";