http-cache-dechunk-filter #

allows range request for cached response that was recieved from upstream with Transfer-Encoding: chunked.

Source: upstream source

Directives

cache_dechunk #

syntax: cache_dechunk 1 arg (on/off flag);  ·  context: http, server, location, location-if

Boolean directive — set to "on" or "off".

Example

load_module "/usr/lib64/nginx/modules/ngx_http_cache_dechunk_filter_module.so";

http {
    proxy_cache_path /var/lib/nginx/tmp/cache keys_zone=sample:10m max_size=10g;

    server {
        proxy_cache         sample;
        proxy_cache_valid   200 1h;
        proxy_http_version  1.1;

        cache_dechunk on;

        location / {
            proxy_pass http://upstream;
        }
    }
}

↑ back to index