You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I write MRE - https://github.com/DudaGod/vite-gen-index.html-issue. In this repo I use post hook configureServer in which I call transformIndexHtml on each request. I expect that for different queries (they differ in the value of the query parameter) will be generated different index.html. But when opening two pages with different query parameters at the same time I get the same generated script that outputs the log from the first request.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Looks like problem is here. Inside cleanUrl all query params are replaced to empty string. As a result all my requests cached to the same path - /.
Looks like this is expected behaviour and in my case I should modify query parameter to path, like this: http://localhost:4444/?uuid=12345 -> http://localhost:4444/12345
Describe the bug
I write MRE - https://github.com/DudaGod/vite-gen-index.html-issue. In this repo I use post hook
configureServer
in which I calltransformIndexHtml
on each request. I expect that for different queries (they differ in the value of the query parameter) will be generated different index.html. But when opening two pages with different query parameters at the same time I get the same generated script that outputs the log from the first request.Reproduction
https://github.com/DudaGod/vite-gen-index.html-issue
Steps to reproduce
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: