implement HEAD requests and small fix for compression files