diff --git a/lib/asset_sync/storage.rb b/lib/asset_sync/storage.rb index c67691c4..d718200b 100644 --- a/lib/asset_sync/storage.rb +++ b/lib/asset_sync/storage.rb @@ -137,7 +137,7 @@ def upload_file(f) :content_type => mime } - if /-[0-9a-fA-F]{32}$/.match(File.basename(f,File.extname(f))) + if /-[0-9a-fA-F]{32,}$/.match(File.basename(f,File.extname(f))) file.merge!({ :cache_control => "public, max-age=#{one_year}", :expires => CGI.rfc1123_date(Time.now + one_year)