diff options
Diffstat (limited to 'lib/rack/etag.rb')
-rw-r--r-- | lib/rack/etag.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rack/etag.rb b/lib/rack/etag.rb index a0041062..fd3de554 100644 --- a/lib/rack/etag.rb +++ b/lib/rack/etag.rb @@ -1,5 +1,7 @@ +# frozen_string_literal: true + require 'rack' -require 'digest/md5' +require 'digest/sha2' module Rack # Automatically sets the ETag header on all String bodies. @@ -13,7 +15,7 @@ module Rack # defaults to nil, while the second defaults to "max-age=0, private, must-revalidate" class ETag ETAG_STRING = Rack::ETAG - DEFAULT_CACHE_CONTROL = "max-age=0, private, must-revalidate".freeze + DEFAULT_CACHE_CONTROL = "max-age=0, private, must-revalidate" def initialize(app, no_cache_control = nil, cache_control = DEFAULT_CACHE_CONTROL) @app = app |