You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The NextImageminimumCacheTTL is being ignored and replaced by max-age=0. By default it should be 60. Any overrides at next.config.js, as specified by the docs, are also ignored.
To Reproduce
Steps to reproduce the behavior:
Install a fresh tailwind-nextjs-starter-blog
Build and serve: npm i; npm run build; npm run serve;
This is still happening even after figuring out that I have to use direct image URLs rather than reference type links in Markdown (see this commit) to get them wrapped as Next Image.
Describe the bug
The NextImage
minimumCacheTTL
is being ignored and replaced bymax-age=0
. By default it should be 60. Any overrides atnext.config.js
, as specified by the docs, are also ignored.To Reproduce
Steps to reproduce the behavior:
tailwind-nextjs-starter-blog
npm i; npm run build; npm run serve;
Cache-Control
header.Expected behavior
Image response headers should have a default
Cache-Control
withmax-age=60
or as defined byminimumCacheTTL
.Instead,
max-age=0
is returned, therefore disabling cache optimizations.Screenshots
This is the
Cache-Control
being returned by sample images at /blog/guide-to-using-images-in-nextjs.But it should have a default value of 60 or as defined by
minimumCacheTTL
.Here's an example from a clean next js installation.
System Info (if dev / build issue):
Browser Info (if display / formatting issue):
The text was updated successfully, but these errors were encountered: