Skip to content

Commit

Permalink
Merge pull request #38 from madguy/master
Browse files Browse the repository at this point in the history
fix problem, cache is not used in dynamic mode
  • Loading branch information
dead-horse committed Mar 27, 2015
2 parents d0206e4 + 5f6eca3 commit 7b96394
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = function staticCache(dir, options, files) {
if (!file) {
if (!options.dynamic) return yield* next
if (path.basename(filename)[0] === '.') return yield* next
if (filename.charAt(0) === path.sep) filename = filename.slice(1)
try {
var s = yield stat(path.join(dir, filename))
if (!s.isFile()) return yield* next
Expand Down

0 comments on commit 7b96394

Please sign in to comment.