hoodiehq / hoodie-server

:dog: Hapi plugin for Hoodie’s server core module
Apache License 2.0
243 stars 47 forks source link

satic server: fetch all only for non-asset urls #23

Closed gr2m closed 10 years ago

gr2m commented 11 years ago

if url ends with one of the common extension like .js,.css,.png,.ico, ... the static server should not fallback to serve the root www/index.html. Instead, it should send a 404.

svnlto commented 11 years ago

@caolan this in yet?

caolan commented 10 years ago

This seems fragile to me, I'd suggest we check for a file first, then serve www/index.html on 404

caolan commented 10 years ago

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