hgweb mime-types for archives

Matt Mackall mpm at selenic.com
Wed Apr 4 11:59:50 CDT 2007


On Wed, Apr 04, 2007 at 12:22:09PM +0200, Luc Heinrich wrote:
> On 4 avr. 07, at 05:02, Matt Mackall wrote:
> 
> >It's probably specific to Safari.
> 
> In my case yes, but this could happen using any other user agent. And  
> either way, gzipped tar archives should be served using the  
> application/x-tar-gz content type [1], not application/x-tar. I'm not  
> 100% sure about bz2 compressed archives though, but they should  
> probably be application/x-bzip-compressed-tar or at least application/ 
> octet-stream, but definitely not x-tar.
...
> [1] http://www.mimetype.org/

This site is not authoritative. And the authoritative site (IANA)
doesn't mention tar at all.

If I download files from Apache (which is about as close to
authoritative as I think we can get), I see:

tar.gz -> application/x-gzip
tar.bz2 -> application/x-tar
zip -> application/zip

And downloading Firefox:

tar.gz -> application/x-gzip

Finally, asking Google:

application/x-tar -> 161000 hits
application/x-gzip -> 342000 hits
application/x-tar-gz -> 12000 hits
application/x-tar-gzip -> 831 hits (most false positives)
application/x-tar-bz2 -> 8 hits

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list