prevent app from reloading when a file is requested (in development mode)

thanks for adding this.   at some point we should clean up this file so there's less duplication, but no rush on that.