HTTP slice directives
slice directive
HTTP, server, location context. Default: 0. Introduced: 1.9.8. Optional slice module; divides a response into ranges. Avoid background cache updates.
Formal Syntax & Structure
nginx syntaxnginx
slice size;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| size | byte size | Range chunk size; zero disables slicing. Include slice range in cache key and origin Range, and allow 206 caching. Avoid background update. |
Working Example
Example Snippetnginx
slice 512k;