I'm writing a drop-in replacement for connect.static that watches the served files and notifies the client via server-sent events. This requires a hook where both the requested URL as well as the resolved file path is known. The existing stream event would do, but of course it isn't fired in case of conditional GETs. Adding an additional file event was the simplest solution I could think of.
emit a file event