Skip to content

feat: add bypass cache feature for perf debuggability#703

Closed
serhalp wants to merge 1 commit intomainfrom
feat/debug-cache-mode
Closed

feat: add bypass cache feature for perf debuggability#703
serhalp wants to merge 1 commit intomainfrom
feat/debug-cache-mode

Conversation

@serhalp
Copy link
Copy Markdown
Member

@serhalp serhalp commented Feb 2, 2026

Here it is in action:

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use" | grep x-cache
real 5.34

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use" | grep x-cache
real 0.37

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use?__bypass_cache__=1" | grep x-cache
x-cache-bypass: all
real 2.55

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use" | grep x-cache
real 0.35

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use?__bypass_cache__=npm-package" | grep x-cache
x-cache-bypass: npm-package
real 0.48

I may have gone too far with the fine-grained controls 😅

Warning

Don't look at this PR. It's a thrown together proof of concept largely generated by Claude.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
npmx.dev Ready Ready Preview, Comment Feb 3, 2026 1:43am
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
docs.npmx.dev Ignored Ignored Preview Feb 3, 2026 1:43am
npmx-lunaria Ignored Ignored Feb 3, 2026 1:43am

Request Review

Here it is in action:

```
❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use" | grep x-cache
real 5.34

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use" | grep x-cache
real 0.37

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use?__bypass_cache__=1" | grep x-cache
x-cache-bypass: all
real 2.55

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use" | grep x-cache
real 0.35

❯ time -p curl -s -I "http://127.0.0.1:3000/vue-use?__bypass_cache__=npm-package" | grep x-cache
x-cache-bypass: npm-package
real 0.48
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant