Use HEAD request for determining content-type of resources.