Skip to content
Browse files

Check for cache-control:no-cache

  • Loading branch information...
1 parent 5c69abc commit 7b4b7a50536b03de7a11b6aa0c2c78eb3f42f24a @kul kul committed Mar 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/connect-cache.js
View
2 lib/connect-cache.js
@@ -28,7 +28,7 @@ exports = module.exports = function (options) {
}
return function (req, res, next) {
if (req.method !== 'GET'
- || req.headers['x-no-cache'] == "1") {
+ || req.headers['x-no-cache'] == "1" || req.headers['cache-control']=='no-cache') {
return next();
}
var ttl = 0;

0 comments on commit 7b4b7a5

Please sign in to comment.
Something went wrong with that request. Please try again.