Mercurial > hg > nginx
comparison auto/sources @ 6317:29f35e60840b
Slice filter.
Splits a request into subrequests, each providing a specific range of response.
The variable "$slice_range" must be used to set subrequest range and proper
cache key. The directive "slice" sets slice size.
The following example splits requests into 1-megabyte cacheable subrequests.
server {
listen 8000;
location / {
slice 1m;
proxy_cache cache;
proxy_cache_key $uri$is_args$args$slice_range;
proxy_set_header Range $slice_range;
proxy_cache_valid 200 206 1h;
proxy_pass http://127.0.0.1:9000;
}
}
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Mon, 07 Dec 2015 16:30:48 +0300 |
parents | 2c8874c22073 |
children | 0f203a2af17c |
comparison
equal
deleted
inserted
replaced
6316:f44de0d12143 | 6317:29f35e60840b |
---|---|
358 | 358 |
359 HTTP_USERID_FILTER_MODULE=ngx_http_userid_filter_module | 359 HTTP_USERID_FILTER_MODULE=ngx_http_userid_filter_module |
360 HTTP_USERID_SRCS=src/http/modules/ngx_http_userid_filter_module.c | 360 HTTP_USERID_SRCS=src/http/modules/ngx_http_userid_filter_module.c |
361 | 361 |
362 | 362 |
363 HTTP_SLICE_FILTER_MODULE=ngx_http_slice_filter_module | |
364 HTTP_SLICE_SRCS=src/http/modules/ngx_http_slice_filter_module.c | |
365 | |
366 | |
363 HTTP_REALIP_MODULE=ngx_http_realip_module | 367 HTTP_REALIP_MODULE=ngx_http_realip_module |
364 HTTP_REALIP_SRCS=src/http/modules/ngx_http_realip_module.c | 368 HTTP_REALIP_SRCS=src/http/modules/ngx_http_realip_module.c |
365 | 369 |
366 | 370 |
367 HTTP_ADDITION_FILTER_MODULE=ngx_http_addition_filter_module | 371 HTTP_ADDITION_FILTER_MODULE=ngx_http_addition_filter_module |