nginx/src
Roman Arutyunyan 8ba626ccd7 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;
    }
}
2015-12-07 16:30:48 +03:00
..
core Style: NGX_PTR_SIZE replaced with sizeof(void *). 2015-12-03 20:06:45 +03:00
event Win32: timer_resolution now ignored with select. 2015-10-20 18:16:18 +03:00
http Slice filter. 2015-12-07 16:30:48 +03:00
mail Win32: MSVC 2015 compatibility. 2015-08-17 18:09:17 +03:00
misc Style: fix typo. 2014-07-08 03:03:14 -07:00
mysql Copyright updated. 2012-01-18 15:07:43 +00:00
os Core: fix typo in error message. 2015-12-02 19:17:19 -08:00
stream Stream: delete proxy connection timer after SSL handshake. 2015-10-06 08:57:09 +03:00