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