next.config.js
に以下のように記述すると最適化された画像のキャッシュ期間を変更できます。
デフォルトでは60秒になっています。
module.exports = {
images: {
minimumCacheTTL: 60,
},
}
個別で変更する場合には headers
を使用して Cache-Control
ヘッダーを設定します。
Go to list of users who liked
More than 1 year has passed since last update.
next.config.js
に以下のように記述すると最適化された画像のキャッシュ期間を変更できます。
デフォルトでは60秒になっています。
module.exports = {
images: {
minimumCacheTTL: 60,
},
}
個別で変更する場合には headers
を使用して Cache-Control
ヘッダーを設定します。
Register as a new user and use Qiita more conveniently
Go to list of users who liked