Skip to content

Instantly share code, notes, and snippets.

@kogakure
Forked from johnboxall/config.rb
Created April 8, 2014 05:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kogakure/10094527 to your computer and use it in GitHub Desktop.
Save kogakure/10094527 to your computer and use it in GitHub Desktop.
# Generate cache busters using the MD5 digest of files rather than the default
# `mtime`.
asset_cache_buster do |_, file|
Digest::MD5.hexdigest(File.read(file.path))
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment