common/origin_save/origin_exists: Handle Internet Archive artifact URLs
Some HTTP hosted tarballs have been archived by the Internet Archive. In that case to check URL validity and get tarball metadata, HEAD requests must follow redirection and info regarding last modified date or content length must be retrieved from different HTTP response headers.
Related to T3365
Migrated from D5859 (view on Phabricator)