What is the correct MIME type for a tar.gz file?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Quiet Intelligence
--
Chapters
00:00 What Is The Correct Mime Type For A Tar.Gz File?
00:29 Accepted Answer Score 108
01:09 Answer 2 Score 6
01:27 Thank you
--
Full question
https://superuser.com/questions/901962/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#tar #gzip #filetypes #mimetypes
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Quiet Intelligence
--
Chapters
00:00 What Is The Correct Mime Type For A Tar.Gz File?
00:29 Accepted Answer Score 108
01:09 Answer 2 Score 6
01:27 Thank you
--
Full question
https://superuser.com/questions/901962/w...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#tar #gzip #filetypes #mimetypes
#avk47
ACCEPTED ANSWER
Score 108
As of August 2012, the MIME type recommended in RFC 6713 is application/gzip
.
According to the IANA registry, tar is not an official media type, so a GZipped tar file is officially only a compressed file.
Hypothetically, if a tarball were an official media type and following conventions, its MIME type would be application/tar
(file extension .tar) and its compressed version would be application/tar+gzip
(file extensions .tar.gz and .tgz).
ANSWER 2
Score 6
Although most are deprecated, they are all technically correct, just different MIME types.
The correct MIME type is application/x-gzip
according to cPanel standards.