node-static icon indicating copy to clipboard operation
node-static copied to clipboard

301 redirect for query params

Open zba opened this issue 7 years ago • 1 comments

hello,

I trying to use node-static command line, unfortunately I found that it does 301 redirect, if I add parameters to path... I sure this is wrong, 1 - because redirect is permanent, 2, because it should just serve index file, not add additional redirects.

Do you mind to add an option to switch off such behaviour

zba avatar May 10 '18 07:05 zba

oh seems --spa does this... ,but anyway why 301 ? it makes me sad, because I using proxy to load the resource and after 301, I should reload with no-cache.

zba avatar May 10 '18 08:05 zba