cloudhead / node-static

rfc 2616 compliant HTTP static-file server module, with built-in caching.
MIT License
2.17k stars 245 forks source link

301 redirect for query params #205

Open zba opened 6 years ago

zba commented 6 years ago

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 commented 6 years ago

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.