Try to set mtime directly only for http urls.

Mtime detection may be broken for other types of urls, therefore
just ensure that we handle an HTTP url.