Skip to content

node: Use hash based cache path in FilesystemBasedCache#515

Merged
bbhtt merged 1 commit intomasterfrom
bbhtt/node-fix-cache-filename
Mar 3, 2026
Merged

node: Use hash based cache path in FilesystemBasedCache#515
bbhtt merged 1 commit intomasterfrom
bbhtt/node-fix-cache-filename

Conversation

@bbhtt
Copy link
Collaborator

@bbhtt bbhtt commented Mar 3, 2026

FilesystemBasedCache previously used an escaped version of the full cache key as the filename. Since cache keys include full URLs, this could exceed the 255-byte filename limit. So use SHA256 based cache path. For backward compatibility, legacy cache entries are migrated to the new cache path.

Fixes #443

@bbhtt bbhtt requested a review from a team as a code owner March 3, 2026 03:48
@github-actions github-actions bot added the node label Mar 3, 2026
FilesystemBasedCache previously used an escaped version of the full
cache key as the filename. Since cache keys include full URLs, this
could exceed the 255-byte filename limit. So use SHA256 based cache
path. For backward compatibility, legacy cache entries are  migrated to
the new cache path.

Fixes #443
@bbhtt bbhtt force-pushed the bbhtt/node-fix-cache-filename branch from 8e6febb to 7fe4755 Compare March 3, 2026 04:57
@bbhtt bbhtt merged commit 5de4612 into master Mar 3, 2026
4 checks passed
@bbhtt bbhtt deleted the bbhtt/node-fix-cache-filename branch March 3, 2026 05:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"File name too long" when trying to use generator for node

1 participant