5 | | I would therefore suggest that, for responses that gzip_static can satisfy, the gzip_static module should add `Accept-Ranges: bytes` to the response (in addition to the `Etag`/`Last-Modified`/`Content-Encoding` headers that are already added), and add support for handling the `Range: <ranges>` and `If-Range: <etag>/<lastmod>` request headers in accordance with the HTTP spec (i.e. serve byte ranges interpreted as referring to the gzip-encoded resource; if an If-Range header is present in the request and it matches the current gzip-encoded resource, send 206 and the requested range, otherwise send 200 and the full gzip-encoded resource). |
| 5 | I would therefore suggest that, for responses that gzip_static can satisfy, the gzip_static module should add `Accept-Ranges: bytes` to the response (in addition to the `Etag`/`Last-Modified`/`Content-Encoding` headers that are already added), and add support for handling the `Range: <ranges>` and `If-Range: <etag>/<lastmod>` request headers in accordance with the HTTP spec (i.e. serve byte ranges interpreted as referring to the gzip-encoded resource; if an `If-Range` header is present in the request and it matches the current gzip-encoded resource, send 206 and the requested range, otherwise send 200 and the full gzip-encoded resource). |