Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #18 from dsrw/master

Sort cached files before generating manifest key
  • Loading branch information...
commit e87765e6da8ac0bc36ca76c3c465fa1baf1614a9 2 parents 1c4b7d6 + 1af5e6e
@wycats authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/rack/offline.rb
View
2  lib/rack/offline.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.