Content based on hostname? #5128
-
I have a simple out-of-the-box configuration of Verdaccio, except that I've changed the listener to listen on 0.0.0.0. When I browse http://localhost:4873/, I can see all the packages I've deployed and I can login to the server with the password I defined in .htaccess. Using any other URL (e.g., http://my-machine-name:4873/ or even http://127.0.1:4873/), I get "No Package Published Yet" and the login doesn't work. I restart Verdaccio and this time go for http://my-machine-name:4873/. That works, and I can login. I then try http://localhost:4873/, and I get "No Package Published Yet" and the login doesn't work. Based on this, it appears that Verdaccio is taking the first hostname it encounters and using that, and only that, to answer requests. This is really weird behaviour, and I can't find anything in the configuration documentation that says "answer all requests regardless of hostname", which I would have thought would be the default behaviour. Any help on this would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think is because the https://verdaccio.org/docs/next/webui/#configuration the |
Beta Was this translation helpful? Give feedback.
I think is because the https://verdaccio.org/docs/next/webui/#configuration the
html_cache
, it memoize the rendered html, you can disable it, but it comes by default.