serve-static
Advanced tools
Comparing version 1.10.3 to 1.11.0
@@ -0,1 +1,18 @@ | ||
1.11.0 / 2016-06-07 | ||
=================== | ||
* Use status code 301 for redirects | ||
* deps: send@0.14.0 | ||
- Add `acceptRanges` option | ||
- Add `cacheControl` option | ||
- Attempt to combine multiple ranges into single range | ||
- Correctly inherit from `Stream` class | ||
- Fix `Content-Range` header in 416 responses when using `start`/`end` options | ||
- Fix `Content-Range` header missing from default 416 responses | ||
- Ignore non-byte `Range` headers | ||
- deps: http-errors@~1.5.0 | ||
- deps: range-parser@~1.2.0 | ||
- deps: statuses@~1.3.0 | ||
- perf: remove argument reassignment | ||
1.10.3 / 2016-05-30 | ||
@@ -2,0 +19,0 @@ =================== |
@@ -180,3 +180,3 @@ /*! | ||
// send redirect response | ||
res.statusCode = 303 | ||
res.statusCode = 301 | ||
res.setHeader('Content-Type', 'text/html; charset=UTF-8') | ||
@@ -183,0 +183,0 @@ res.setHeader('Content-Length', Buffer.byteLength(msg)) |
{ | ||
"name": "serve-static", | ||
"description": "Serve static files", | ||
"version": "1.10.3", | ||
"version": "1.11.0", | ||
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
@@ -11,3 +11,3 @@ "license": "MIT", | ||
"parseurl": "~1.3.1", | ||
"send": "0.13.2" | ||
"send": "0.14.0" | ||
}, | ||
@@ -17,3 +17,3 @@ "devDependencies": { | ||
"eslint-config-standard": "5.3.1", | ||
"eslint-plugin-promise": "1.3.1", | ||
"eslint-plugin-promise": "1.3.2", | ||
"eslint-plugin-standard": "1.3.2", | ||
@@ -20,0 +20,0 @@ "istanbul": "0.4.3", |
@@ -32,2 +32,13 @@ # serve-static | ||
##### acceptRanges | ||
Enable or disable accepting ranged requests, defaults to true. | ||
Disabling this will not send `Accept-Ranges` and ignore the contents | ||
of the `Range` request header. | ||
##### cacheControl | ||
Enable or disable setting `Cache-Control` response header, defaults to | ||
true. Disabling this will ignore the `maxAge` option. | ||
##### dotfiles | ||
@@ -34,0 +45,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20438
248
+ Addedhttp-errors@1.5.1(transitive)
+ Addedinherits@2.0.3(transitive)
+ Addedrange-parser@1.2.1(transitive)
+ Addedsend@0.14.0(transitive)
+ Addedsetprototypeof@1.0.2(transitive)
+ Addedstatuses@1.3.1(transitive)
- Removedhttp-errors@1.3.1(transitive)
- Removedinherits@2.0.4(transitive)
- Removedrange-parser@1.0.3(transitive)
- Removedsend@0.13.2(transitive)
- Removedstatuses@1.2.1(transitive)
Updatedsend@0.14.0