module Roda::RodaPlugins::RecheckPrecompiledAssets::RequestClassMethods
Private Instance Methods
Source
# File lib/roda/plugins/recheck_precompiled_assets.rb, line 99 def _asset_regexp(type, key, _) /#{Regexp.escape(key.sub(/\A#{type}/, ''))}\.[0-9a-fA-F]+\.#{type}/ end
Use a regexp that matches any digest. When the precompiled asset metadata file is updated, this allows requests for a previous precompiled asset to still work.