Add a minor improvement in checking request for static files.