Skip to content

Commit

Permalink
Merge pull request #315 from tricknotes/cache-control-for-sprockets3
Browse files Browse the repository at this point in the history
Allow over 32 chars length hash digest
  • Loading branch information
PikachuEXE committed Apr 12, 2016
2 parents bffff49 + 05eb515 commit 90854f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asset_sync/storage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 90854f2

Please sign in to comment.