updated logo for signature serving

This commit is contained in:
2026-09-02 23:22:57 +02:00
parent 62e2e29879
commit 92d6c8641a
3 changed files with 19 additions and 0 deletions
+19
View File
@@ -3,6 +3,25 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
allowedDevOrigins: ["192.168.100.6"], allowedDevOrigins: ["192.168.100.6"],
output: "standalone", output: "standalone",
// Files in public/ are served with `Cache-Control: public, max-age=0` by
// default, because Next.js can't know whether they change. kd-tile.png is
// hot-linked by an external HTML email signature, so its URL is a fixed
// contract and its bytes never change — pin it to a long-lived immutable
// cache so mail clients and their image proxies stop re-fetching it.
// Headers are matched before the filesystem, so this applies to public/.
async headers() {
return [
{
source: "/kd-tile.png",
headers: [
{
key: "Cache-Control",
value: "public, max-age=31536000, immutable",
},
],
},
];
},
}; };
export default nextConfig; export default nextConfig;
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 5.6 KiB