Welcome! Log In Create A New Profile

Advanced

Gzip issue with Safari

May 16, 2016 06:06AM
Hi all,

we have successfully enable gziping on the server side and it works perfectly with Chrome and FF (it auto compress the files that we want). We're using compressed assets of type: .dds and .pvr. MIME-types for those files are: application/octet-stream. But the problem appears in Safari which doesn't accept .gz file type extension, so we are left out with a huge improvement regarding file size/loading time.
Those are our current settings for enabling gzip:
gzip on;
gzip_proxied any;
gzip_types image/png application/javascript application/octet-stream audio/ogg text/xml image/jpeg;
gzip_vary on;
gzip_comp_level 6;
gzip_min_length 1100;
gzip_static on;

I noticed that Apache server enables something like this:
AddEncoding gzip .jgz
AddType text/javascript .jgz


And this little change enables that Safari acknowledge gzip type and it also uploads it.
So the question is what are the possibilities on Nginx? Can we somehow add support for additional extensions?
I've also read something about gzip_static setting which look for pre-compressed files, but it looks just for files with .gz extensions.
Do you know any solutions?
Subject Author Posted

Gzip issue with Safari

mcofko May 16, 2016 06:06AM

Re: Gzip issue with Safari

itpp2012 May 16, 2016 06:23AM

Re: Gzip issue with Safari

mcofko May 16, 2016 06:28AM

Re: Gzip issue with Safari

Francis Daly May 17, 2016 01:26PM

Re: Gzip issue with Safari

mcofko May 18, 2016 03:37AM

Re: Gzip issue with Safari

Francis Daly May 18, 2016 01:06PM

Re: Gzip issue with Safari

sphax3d August 09, 2016 04:14AM

Re: Gzip issue with Safari

Valentin V. Bartenev August 09, 2016 10:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 296
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