sveltejs / sveltejs/kit

enhanced-img cache is too sticky

Open
#13,010 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pkg:enhanced-img
Dominant language
JavaScript
Stars
20.8k
Forks
2.3k
Avg merge
1d 16h
Merged PRs (30d)
156

Description

Describe the bug

If I have <enhanced:img alt="..." src="./foo.png">, and update foo.png, the page doesn't update. I have to nuke the cache with rm -rf node_modules/.vite and restart the dev server

Reproduction

later

Logs

No response

System Info
latest
Severity

annoyance

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or complete reproduction is provided. Start by reproducing the issue with enhanced:img and an updated foo.png, then inspect the Vite dev-server cache behavior around node_modules/.vite. Done means image changes appear without deleting the cache or restarting the server.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, vite
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.