@skypx:
Not sure if my explanation will suffice, but here goes…
tar puts multiple files into a single (tar) file.
gzip compresses one file (only).
So if the files don’t have the correct extension the program used to open it will try and fail simply because it tries to open it based on the extension. ;)
thats a good explanation… tar has no compression but can store multiple files.
So several compression formats can be used to compress tar files (gz, bz2, xz).
When server is not configured properly, it gives you wrong extension. File on server could very much be .tar but server gives it to browser as tar.gz and the issue is there.