Closed gr2m closed 10 years ago
@caolan this in yet?
This seems fragile to me, I'd suggest we check for a file first, then serve www/index.html
on 404
I think this used to happen on 404 in the old hoodie-server
code, but since we've switched to hapi we might need to reimplement it, see: https://github.com/hoodiehq/hoodie-server/issues/205
if url ends with one of the common extension like
.js
,.css
,.png
,.ico
, ... the static server should not fallback to serve the rootwww/index.html
. Instead, it should send a 404.