Gzip issue with Safari
nginx-forum at forum.nginx.org
Mon May 16 10:06:21 UTC 2016
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:
audio/ogg text/xml image/jpeg;
I noticed that Apache server enables something like this:
AddEncoding gzip .jgz
And this little change enables that Safari acknowledge gzip type and it also
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?
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266915,266915#msg-266915
More information about the nginx