Welcome! Log In Create A New Profile

Advanced

nginx 1.4.1 + 'gzip on' causes download of file instead of displaying it in browser

May 27, 2013 03:44PM
when i use nginx 1.4.1 + 'gzip on', once in every 2 requests i get the index.php (which its output is text/html) being downloaded by the browser as unknown file type instead of displayed in it (the broswer displays the "download & save" window and writes in this window that its content type is 'application/octet-stream')
after i download it (firefox saves it with file extension 'part') - i see in the file the response header (200 OK etc.) + body chunked & still gzipped.
when not using gzip - all works fine.
when switching back to nginx 1.2.8 it never happens - with same configuration / site / request.
i get to the site thru proxy module, using HTTP/1.1.

thanks in advance
Gad
Subject Author Posted

nginx 1.4.1 + 'gzip on' causes download of file instead of displaying it in browser

gadh May 27, 2013 03:44PM

Re: nginx 1.4.1 + 'gzip on' causes download of file instead of displaying it in browser

gadh May 28, 2013 04:52AM

Re: nginx 1.4.1 + 'gzip on' causes download of file instead of displaying it in browser

Maxim Dounin May 28, 2013 06:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready