class Middleman::Extensions::CacheBuster
The Cache Buster extension
def initialize(app, options_hash={}, &block)
def initialize(app, options_hash={}, &block) super app.rewrite_inline_urls id: :cache_buster, url_extensions: options.exts || app.config[:asset_extensions], source_extensions: options.sources, ignore: options.ignore, rewrite_ignore: options.rewrite_ignore, proc: method(:rewrite_url) end
def rewrite_url(asset_path, _dirpath, _request_path)
def rewrite_url(asset_path, _dirpath, _request_path) asset_path + '?' + Time.now.strftime('%s') end