fresh 0.2.1 → 0.2.2
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.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -33,8 +33,8 @@ function fresh(req, res) {
|
|
|
33
33
|
// unconditional request
|
|
34
34
|
if (!modifiedSince && !noneMatch) return false;
|
|
35
35
|
|
|
36
|
-
// check for no-cache
|
|
37
|
-
if (cc &&
|
|
36
|
+
// check for no-cache cache request directive
|
|
37
|
+
if (cc && cc.indexOf('no-cache') !== -1) return false;
|
|
38
38
|
|
|
39
39
|
// parse if-none-match
|
|
40
40
|
if (noneMatch) noneMatch = noneMatch.split(/ *, */);
|
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.2.
|
|
5
|
+
"version": "0.2.2",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"repository": { "type": "git", "url": "https://github.com/visionmedia/node-fresh.git"},
|
|
8
8
|
"dependencies": {},
|