<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Lucida Sans Unicode">I'm having trouble in
getting Nginx to gzip my pages that are served as application/xhtml+xml<br>
<br>
In my nginx.conf http block I have the following:<br>
<i>&nbsp;&nbsp;&nbsp; gzip&nbsp; on;<br>
&nbsp;&nbsp;&nbsp; gzip_comp_level 3;<br>
&nbsp;&nbsp;&nbsp; gzip_proxied any;<br>
&nbsp;&nbsp;&nbsp; gzip_types text/plain text/html text/css application/x-javascript
text/xml application/xml application/xhtml+xml application/xml+rss
text/javascript;</i></font></font><font size="-1"><font
 face="Lucida Sans Unicode"><i><br>
<br>
</i>In mime.types I commented out the existing xhtml entry and added<br>
<i>&nbsp;&nbsp;&nbsp; application/xhtml+xml&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; xhtml;</i><br>
<i></i><br>
So a plain text file with .xhtml extension is served with content-type </font></font><font
 size="-1"><font face="Lucida Sans Unicode">application/xhtml+xml, but
it is not being gzipped for some reason? </font></font><font size="-1"><font
 face="Lucida Sans Unicode">CSS and javascript are being gzipped okay
though.<br>
<br>
The response headers for my test xhtml page look like this:<br>
<i>HTTP/1.1 200 OK<br>
Server: nginx<br>
Date: Fri, 27 Nov 2009 13:23:33 GMT<br>
Content-Type: application/xhtml+xml<br>
Connection: keep-alive<br>
Content-Length: 11<br>
Last-Modified: Fri, 27 Nov 2009 13:13:42 GMT<br>
Accept-Ranges: bytes</i><br>
<br>
Can anyone help me get my pages gzipped with content type header of </font></font><font
 size="-1"><font face="Lucida Sans Unicode"><i>application/xhtml+xml</i></font></font><font
 size="-1"><font face="Lucida Sans Unicode">?<br>
<br>
Thanks<br>
<br>
Dave<br>
</font></font>
</body>
</html>