Mercurial > hg > nginx-quic
annotate docs/html/index.html @ 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 | ed470a7bf7fd |
children | 67c68cd973b8 |
rev | line source |
---|---|
4834 | 1 <!DOCTYPE html> |
450 | 2 <html> |
3 <head> | |
4 <title>Welcome to nginx!</title> | |
4834 | 5 <style> |
6 body { | |
7 width: 35em; | |
8 margin: 0 auto; | |
9 font-family: Tahoma, Verdana, Arial, sans-serif; | |
10 } | |
11 </style> | |
450 | 12 </head> |
4834 | 13 <body> |
14 <h1>Welcome to nginx!</h1> | |
15 <p>If you see this page, the nginx web server is successfully installed and | |
16 working. Further configuration is required.</p> | |
17 | |
18 <p>For online documentation and support please refer to | |
19 <a href="http://nginx.org/">nginx.org</a>.<br/> | |
20 Commercial support is available at | |
21 <a href="http://nginx.com/">nginx.com</a>.</p> | |
22 | |
23 <p><em>Thank you for using nginx.</em></p> | |
450 | 24 </body> |
25 </html> |