The latest Chrome and Chromium seems to unpack .tar.gz files automatically for me on OS X and Linux. When using
wget with the same URL, it shows:
$ wget http://mydomain/dir/file.tar.gz ... HTTP request sent, awaiting response... 200 OK Length: ... [application/octet-stream] ...
Verifying the file type:
$ file file.tar.gz file.tar.gz: gzip compressed data, from FAT filesystem (MS-DOS, OS/2, NT)
When doing the same for the file downloaded with Chrome or Chromium:
$ file file.tar.gz file.tar.gz: POSIX tar archive
Note, that Chrome/Chromium obviously kept the file name, but expanded it (the file size is ~4 times bigger than from the wget-downloaded file).
As website administrator how can I prevent Chrome/Chromium from unpacking the file?
curl -I http://mydomain/dir/file.tar.gz our Apache/Tomcat combo responds with
.tar.gz files from other websites are not unpacked by chrome and don't report the
Content-Encoding: x-gzip header, so there seems to be a relation.