comparison src/http/ngx_http_request.h @ 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 257b51c37c5a
children 887cca40ba6a
comparison
equal deleted inserted replaced
6316:f44de0d12143 6317:29f35e60840b
269 ngx_uint_t content_type_hash; 269 ngx_uint_t content_type_hash;
270 270
271 ngx_array_t cache_control; 271 ngx_array_t cache_control;
272 272
273 off_t content_length_n; 273 off_t content_length_n;
274 off_t content_offset;
274 time_t date_time; 275 time_t date_time;
275 time_t last_modified_time; 276 time_t last_modified_time;
276 } ngx_http_headers_out_t; 277 } ngx_http_headers_out_t;
277 278
278 279
528 529
529 unsigned main_filter_need_in_memory:1; 530 unsigned main_filter_need_in_memory:1;
530 unsigned filter_need_in_memory:1; 531 unsigned filter_need_in_memory:1;
531 unsigned filter_need_temporary:1; 532 unsigned filter_need_temporary:1;
532 unsigned allow_ranges:1; 533 unsigned allow_ranges:1;
534 unsigned subrequest_ranges:1;
533 unsigned single_range:1; 535 unsigned single_range:1;
534 unsigned disable_not_modified:1; 536 unsigned disable_not_modified:1;
535 537
536 #if (NGX_STAT_STUB) 538 #if (NGX_STAT_STUB)
537 unsigned stat_reading:1; 539 unsigned stat_reading:1;