Welcome! Log In Create A New Profile

Advanced

gzip issues [bug?] Content-type has charset set

Joe Bofh
May 01, 2009 06:26PM
I have 2 sites set up, one gzips the js and css as requested with no
issues and the other does not. I spent some time scratching my head on
this one till I noticed the following


The site that does not compress when requested has:

Content-Type: application/x-javascript; charset=utf-8



And the site that does compress has:

Content-Type: application/x-javascript



My gzip config is as follows:
gzip_http_version 1.1;
gzip_vary on;
gzip_comp_level 6;
gzip_proxied any;
gzip_types text/plain text/css application/json
application/x-javascript text/xml application/xml application/xml+rss
text/javascript;



How do I get nginx to gzip content for the first site? It should ignore
the charset which should not matter in this case.
--
Posted via http://www.ruby-forum.com/.
Subject Author Posted

gzip issues [bug?] Content-type has charset set

Joe Bofh May 01, 2009 06:26PM

Re: gzip issues [bug?] Content-type has charset set

Igor Sysoev May 02, 2009 01:22AM

Re: gzip issues Content-type has charset set

Joe Bofh May 02, 2009 03:03AM

Re: gzip issues Content-type has charset set

Igor Sysoev May 02, 2009 09:45AM

Re: gzip issues Content-type has charset set

Joe Bofh May 02, 2009 11:05PM

Re: gzip issues Content-type has charset set

Igor Sysoev May 03, 2009 12:35AM

Re: gzip issues Content-type has charset set

Joe Bofh May 03, 2009 06:03PM

Re: gzip issues Content-type has charset set

Joe Bofh May 03, 2009 06:08PM



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