support HEAD method and range headers