Results 1 to 7 of 7

Thread: tar.gz files decompressed when downloading

  1. #1
    wmtprojectsforum is offline Junior Member
    Join Date
    May 2017
    Posts
    5

    Default tar.gz files decompressed when downloading

    Hi,

    I've noticed recently that .tar.gz files are decompressed when downloading, which is undesirable for our use case. Is it possible to have this changed using the instructions at:

    https://serverfault.com/questions/91...alls-still-nam

    I don't have access to Apache configuration as far as I know, but I would appreciate it if someone could change this for me.

    Thanks in advance.

  2. #2
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    688

    Default

    Hello, i can't reproduce the issue: i can download this file "as is".

    Could you please provide an example?

    Bye!

  3. #3
    wmtprojectsforum is offline Junior Member
    Join Date
    May 2017
    Posts
    5

    Default

    See this file as an example. It retains the extension, but the downloaded file is actually only a tar archive now - the gzip compression has been removed.

  4. #4
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    688

    Default

    Wasn't the original file like that? Can you check it please?

    Bye!

  5. #5
    wmtprojectsforum is offline Junior Member
    Join Date
    May 2017
    Posts
    5

    Default

    I have double checked and can confirm that when downloaded over FTP, the file is gzip compressed and ~600 KB in size instead of 2.8 MB.

  6. #6
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    688

    Default

    Did you try to add the code in the .htaccess file?
    Code:
    AddEncoding x-identity .tar.gz .gz .tgz
    Bye!

  7. #7
    wmtprojectsforum is offline Junior Member
    Join Date
    May 2017
    Posts
    5

    Default

    I didn't realise that was meant to go in .htaccess. Doh! It's working now though, thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO