lib/asset_compiler.rb in vitrine-0.0.28 vs lib/asset_compiler.rb in vitrine-0.0.29

- old
+ new

@@ -116,11 +116,12 @@ # Mix in the request URL into the cache key so that we can hash # .map sourcemaps and .js compiles based off of the same file path # and mtime key = [File.expand_path(path), File.mtime(path), request.path_info, get_public] cache_sha = Digest::SHA1.hexdigest(Marshal.dump(key)) - cache_control :public + etag cache_sha + cache_control :public, :must_revalidate log "---> Vitrine AC: Recompiling #{path} -> #{request.path_info}" end # Get path to the public directory, trying (in order:)