Fixed issues with the HEAD requests in anon-files.