Files
nginx/auto
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
..
2012-01-18 15:07:43 +00:00
2012-01-18 15:07:43 +00:00
2012-01-18 15:07:43 +00:00
2012-01-18 15:07:43 +00:00
2012-01-18 15:07:43 +00:00
2015-12-07 16:30:48 +03:00
2012-01-18 15:07:43 +00:00
2015-12-07 16:30:48 +03:00
2015-12-07 16:30:48 +03:00
2012-01-18 15:07:43 +00:00
2015-03-14 17:37:07 +03:00
2015-03-14 17:37:07 +03:00