Skip to content

feat: cache SVG previews in File Explorer#48223

Open
Mankurj05 wants to merge 1 commit into
microsoft:mainfrom
Mankurj05:feature/svg-preview-cache
Open

feat: cache SVG previews in File Explorer#48223
Mankurj05 wants to merge 1 commit into
microsoft:mainfrom
Mankurj05:feature/svg-preview-cache

Conversation

@Mankurj05

Copy link
Copy Markdown

Caches SVG preview output in File Explorer so the same SVG does not need to be regenerated every time a folder is opened.

What changed
Add deterministic cache helper to avoid per-preview temp files.
Reuse cached HTML in the SVG preview handler and SVG thumbnail provider instead of regenerating on every request.
Add unit tests to validate cache-key stability.
Validation
Static checks: no syntax errors reported for the modified files.
Local limitation: the .NET SDK (dotnet) is not available in this environment, so full dotnet test/CI couldn't be run locally. GitHub Actions will run CI on the PR.
PR Checklist
Communication: I have commented on the issue and requested to be assigned / noted my intent to work on it.
Closes #48197
Tests: added unit tests for cache-key behavior
CI: relies on GitHub Actions to run full build/tests
Docs/Localization: not applicable for this change

@Mankurj05

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@niels9001 niels9001 added the Product-File Explorer Power Toys that touch explorer like Preview Pane label Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Product-File Explorer Power Toys that touch explorer like Preview Pane

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Cache SVG previews

2 participants