fix cache buster

This commit is contained in:
tdreyno 2009-10-28 10:51:25 -07:00
parent 94112d3140
commit d99ddec85b
2 changed files with 2 additions and 1 deletions

View file

@ -11,7 +11,7 @@ class << Middleman::Base
rescue
end
real_path = File.join(self.environment == "build" ? self.build_dir : self.public, prefix, path)
real_path = File.join(self.public, prefix, path)
http_path << "?" + File.mtime(real_path).strftime("%s") if File.readable?(real_path)
http_path
end

View file

@ -83,6 +83,7 @@ class Middleman::Base
if self.cache_buster?
config.asset_cache_buster do |path, real_path|
# real_path = real_path.gsub(self.build_dir, self.public)
if File.readable?(real_path)
File.mtime(real_path).strftime("%s")
else