next.js
feat(next/image): add lru disk cache and `images.maximumDiskCacheSize`
#89963
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
30
Changes
View On
GitHub
feat(next/image): add lru disk cache and `images.maximumDiskCacheSize`
#89963
styfle
merged 30 commits into
canary
from
styfle/image-cache-lru
feat(next/image): add lru disk cache
5eb084b0
nextjs-bot
added
created-by: Next.js team
nextjs-bot
added
tests
nextjs-bot
added
type: next
refactor to separate file
e66f39da
vercel
commented on 2026-02-14
Merge branch 'canary' into styfle/image-cache-lru
303f46f2
make the config nullable and exit early
f96e2a5a
add test for cacheMaxDiskSize config
28180290
add missing test to lru-cache.test.ts
d9a45f6e
return boolean from lru.set()
5dca140e
error message
51473150
check for success from lru.set() before writeToCacheDir()
0c59f621
refactor delete() out of lru
f05f70a0
Merge branch 'canary' into styfle/image-cache-lru
3fbe114e
ensure cache directory exists
7bd0716d
update comment
cee787d5
ztanner
commented on 2026-02-18
apply ztanner suggestions
d04b1c5d
Mark `isrFlushToDisk` as deprecated
076a326c
Revert "Mark `isrFlushToDisk` as deprecated"
ceabcd56
move config to `images.maximumDiskCacheSize`
e587be21
consolidate into a single test
c16e5629
null => undefined
636cc215
fix with optional chaining
204ac8eb
styfle
marked this pull request as ready for review
38 days ago
styfle
changed the title
feat(next/image): add lru disk cache
feat(next/image): add lru disk cache and `images.maximumDiskCacheSize`
38 days ago
styfle
requested a review
from
ijjk
38 days ago
styfle
requested a review
from
ztanner
38 days ago
more optional chaining
a9ce9197
Merge branch 'canary' into styfle/image-cache-lru
e36e2f35
improve error message
533f9518
chore: update docs
c7213a47
also disable disk cache during reads
bf999be0
nextjs-bot
added
Documentation
link to `cacheHandler` docs
572ad3cb
styfle
commented on 2026-02-20
ztanner
commented on 2026-02-20
Add `isDiskCacheEnabled` class property to simplify logic
6e5756df
move logic inside if statement
edec8b81
styfle
requested a review
from
ztanner
37 days ago
ztanner
approved these changes on 2026-02-20
Merge branch 'canary' into styfle/image-cache-lru
2ed3ccc7
fix merge conflicts
c10a3065
styfle
enabled auto-merge (squash)
37 days ago
styfle
merged
39eb8e0a
into canary
37 days ago
styfle
deleted the styfle/image-cache-lru branch
37 days ago
claude
added
claude-code-assisted
github-actions
added
locked
github-actions
locked
as resolved
and limited conversation to collaborators
22 days ago
Login to write a write a comment.
Login via GitHub
Reviewers
ztanner
vercel
ijjk
Assignees
No one assigned
Labels
type: next
created-by: Next.js team
Documentation
locked
tests
claude-code-assisted
Milestone
No milestone
Login to write a write a comment.
Login via GitHub