lib/juicer/cache_buster.rb in juicer-1.0.0 vs lib/juicer/cache_buster.rb in juicer-1.0.1
- old
+ new
@@ -77,9 +77,10 @@
#
# See <tt>#hard</tt> and <tt>#soft</tt> for explanation of the parameter
# argument.
#
def self.path(file, type = :soft, parameter = DEFAULT_PARAMETER)
+ return file if file =~ /data:.*;base64/
file = self.clean(file, parameter)
filename = file.split("?").first
raise ArgumentError.new("#{file} could not be found") unless File.exists?(filename)
mtime = File.mtime(filename).to_i
type = [:soft, :hard].include?(type) ? type : :soft