fix: Bug fixed für alle Seiten und das Profil und label
This commit is contained in:
1 parent
133edcd5ba
commit
0a52b29c57
52 files changed
+1290
-129
No files matched your search
@@ -2,6 +2,19 @@ import type { NextConfig } from "next";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
output: "standalone",
|
||||
async headers() {
|
||||
return [
|
||||
{
|
||||
// Browsers are supposed to bypass HTTP cache when checking for a new
|
||||
// service worker, but that's not reliably honored everywhere - an
|
||||
// explicit no-cache header here is the only way to guarantee a sw.js
|
||||
// fix actually reaches already-open tabs promptly after a deploy,
|
||||
// instead of possibly sitting cached for hours.
|
||||
source: "/sw.js",
|
||||
headers: [{ key: "Cache-Control", value: "no-cache, no-store, must-revalidate" }],
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in new issue
Block a user