Skip to content

Commit

Permalink
fix: change headers to images.minimumCacheTTL
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Oct 21, 2024
1 parent 45ea3b2 commit 1053615
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,8 @@ const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
async headers() {
return [
{
source: "/_next/image", // Match the path for Next.js image requests
headers: [
{
key: "Cache-Control",
value: "public, immutable, max-age=31536000", // Mark as immutable and set long caching
},
],
},
];
},
images: {
minimumCacheTTL: 31536000,
remotePatterns: [
{
protocol: "https",
Expand Down

0 comments on commit 1053615

Please sign in to comment.