serve-favicon
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -0,1 +1,6 @@ | ||
2.1.7 / 2014-11-19 | ||
================== | ||
* Avoid errors from enumerables on `Object.prototype` | ||
2.1.6 / 2014-10-16 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -147,4 +147,6 @@ /*! | ||
// Set headers | ||
for (var header in headers) { | ||
res.setHeader(header, headers[header]); | ||
var keys = Object.keys(headers); | ||
for (var i = 0; i < keys.length; i++) { | ||
var key = keys[i]; | ||
res.setHeader(key, headers[key]); | ||
} | ||
@@ -151,0 +153,0 @@ |
{ | ||
"name": "serve-favicon", | ||
"description": "favicon serving middleware with caching", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
@@ -20,6 +20,5 @@ "license": "MIT", | ||
"istanbul": "0.3.2", | ||
"mocha": "~1.21.5", | ||
"mocha": "~2.0.1", | ||
"proxyquire": "~1.0.1", | ||
"should": "~4.0.1", | ||
"supertest": "~0.14.0" | ||
"supertest": "~0.15.0" | ||
}, | ||
@@ -26,0 +25,0 @@ "files": [ |
@@ -11,2 +11,13 @@ # serve-favicon | ||
Why use this module? | ||
- User agents request `favicon.ico` frequently and indiscriminately, so you | ||
may wish to exclude these requests from your logs by using this middleware | ||
before your logger middleware. | ||
- This module caches the icon in memory to improve performance by skipping | ||
disk access. | ||
- This module provides an `ETag` based on the contents of the icon, rather | ||
than file system properties. | ||
- This module will serve with the most compatible `Content-Type`. | ||
## Install | ||
@@ -13,0 +24,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
10064
4
137
121