Skip to content

Commit

Permalink
Chore: 요청 해더에 cache-control 넣기
Browse files Browse the repository at this point in the history
  • Loading branch information
soulchicken committed Oct 25, 2023
1 parent c130959 commit 9c102ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@ const withPWA = require('next-pwa');

/** @type {import('next').NextConfig} */
const config = {
async headers() {
return [
{
source: '/_next/image',
headers: [
{
key: 'Cache-Control',
value: 'public, max-age=86400, immutable',
},
],
},
];
},
images: {
minimumCacheTTL: 86400, // 60*60*24 : 1일
},
Expand Down

0 comments on commit 9c102ba

Please sign in to comment.