Custom next/image cache TTL overrides #19180
Closed
kaleabmelkie
started this conversation in
Ideas
Replies: 1 comment
-
https://nextjs.org/docs/app/api-reference/components/image#minimumcachettl |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As per the docs , next/images use the upstream URL's Cache-Control maxAge (otherwise default to 60 seconds if the header is not found).
Is there a way (or an upcoming PR) to override the maxAge for the images (either individually or globally) to a custom value of our own?
Example use case: Gravatar provides a 5 minutes TTL, but passing through next/image, is it possible to override that to a much higher maxAge?
Beta Was this translation helpful? Give feedback.
All reactions