Class: Waves::Response::Redirects::NotModified

Inherits:
Object
  • Object
show all
Includes:
Waves::Response::Redirect
Defined in:
lib/waves/response/redirects.rb

Instance Method Summary collapse

Instance Method Details

#call(response) ⇒ Object



25
26
27
28
29
30
31
# File 'lib/waves/response/redirects.rb', line 25

def call ( response )
  %w( Allow Content-Encoding Content-Language Content-Length Content-MD5
        Content-Type Last-Modified ).each { |h| response.headers.delete( h ) }
  response.cache_control = 'public'
  response.body = []
  super( response )
end