Class: Rack::NonCache::Http11Filter
- Inherits:
-
Object
- Object
- Rack::NonCache::Http11Filter
- Defined in:
- lib/rack/noncache/filters.rb
Class Method Summary collapse
Class Method Details
.apply(headers) ⇒ Object
12 13 14 15 16 |
# File 'lib/rack/noncache/filters.rb', line 12 def self.apply(headers) headers['Cache-Control'] += 'no-cache, max-age=0, must-revalidate, ' \ 'no-store, private' headers['HTTP_PRAGMA'] = 'no-cache' end |