Changes between Initial Version and Version 2 of Ticket #718


Ignore:
Timestamp:
02/13/15 15:41:21 (9 years ago)
Author:
Maxim Dounin
Comment:

(Just a side note: in the example configuration provided there will be no problem, as gzip_static will not be enabled in location /foo/bar/test/. Additionally, it won't process XML files by default. I've changed the example to one actually affected.)

The problem here is that xslt filter knows nothing about previous request processing. In particular, it can't influence the decision of the gzip_static module to return compressed content. This is a limitation of the design used.

As a workaround, you can tell nginx to don't use gzip_static for XML files in the location with xslt filter enabled, either by disabling gzipping of text/xml in the location completely using the gzip_types directive:

location /foo/bar/test/ {
    gzip_types text/plain;
    ...
}

or by disabling gzip_static for index.xml files with and additional regexp-based location:

location /foo/bar/test/ {
    ...

    location ~ /index\.xml$ {
        gzip_static off;
    }
}

Hope this helps.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #718

    • Property Status newclosed
    • Property Resolutionwontfix
  • Ticket #718 – Description

    initial v2  
    44'''Configuration (simplified):'''
    55{{{
    6 location / {
    7     root /;
    8     gzip_static on;
    9 }
     6gzip_static on;
     7gzip_types text/plain text/xml;
     8
    109location /foo/bar/test/ {
    1110    alias /foo/bar/;