fresh 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -36,7 +36,7 @@ function fresh(req, res) {
36
36
  if (noneMatch) noneMatch = noneMatch.split(/ *, */);
37
37
 
38
38
  // if-none-match
39
- if (noneMatch) etagMatches = ~noneMatch.indexOf(etag);
39
+ if (noneMatch) etagMatches = ~noneMatch.indexOf(etag) || '*' == noneMatch[0];
40
40
 
41
41
  // if-modified-since
42
42
  if (modifiedSince) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "fresh",
3
3
  "author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",
4
4
  "description": "HTTP response freshness testing",
5
- "version": "0.0.1",
5
+ "version": "0.1.0",
6
6
  "main": "index.js",
7
7
  "dependencies": {},
8
8
  "devDependencies": {