Skip to content

Commit

Permalink
Merge pull request #47 from styfle/fix-mincachttl
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysSullivan authored Oct 21, 2024
2 parents 45ea3b2 + 1053615 commit 24f8aca
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 24f8aca

Please sign in to comment.