Permalink
Browse files

Merge pull request #18 from dsrw/master

Sort cached files before generating manifest key
  • Loading branch information...
2 parents 1c4b7d6 + 1af5e6e commit e87765e6da8ac0bc36ca76c3c465fa1baf1614a9 @wycats committed Sep 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/offline.rb
View
@@ -72,7 +72,7 @@ def call(env)
private
def precache_key!
- hash = @config.cache.map do |item|
+ hash = @config.cache.sort!.map do |item|
path = @root.join(item)
Digest::SHA2.hexdigest(path.read) if ::File.file?(path)
end

0 comments on commit e87765e

Please sign in to comment.