Class: Rack::NonCache::Http10Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/noncache/filters.rb

Class Method Summary collapse

Class Method Details

.apply(headers) ⇒ Object



4
5
6
7
8
# File 'lib/rack/noncache/filters.rb', line 4

def self.apply(headers)
  headers['Cache-Control'] =
    'max-stale=0, post-check=0, pre-check=0, ' \
    'no-cache=\"Set-Cookie, Set-Cookie2\"'
end