Class: Beats::Rack::NoCache
- Inherits:
-
Object
- Object
- Beats::Rack::NoCache
- Includes:
- Goliath::Rack::AsyncMiddleware
- Defined in:
- lib/beats/rack/no_cache.rb
Constant Summary collapse
- NO_CACHE_HEADERS =
{ 'Cache-Control' => 'no-store', 'Pragma' => 'no-cache' }
Instance Method Summary collapse
Instance Method Details
#post_process(env, status, headers, body) ⇒ Object
13 14 15 |
# File 'lib/beats/rack/no_cache.rb', line 13 def post_process(env, status, headers, body) [status, NO_CACHE_HEADERS.merge(headers), body] end |