http-cache-dechunk-filter #
Lets clients make range requests on a cached response that the upstream sent with chunked transfer encoding. Use it with proxy_cache when the origin sends chunked responses and clients need partial downloads, such as video seeking.
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;
}
}
}