Class: Stylo::PipelineSteps::Caching

Inherits:
Object
  • Object
show all
Defined in:
lib/stylo/pipeline_steps/caching.rb

Instance Method Summary collapse

Instance Method Details

#call(response) ⇒ Object



4
5
6
7
8
# File 'lib/stylo/pipeline_steps/caching.rb', line 4

def call(response)
  if response.has_content?
    response.set_header('Cache-Control', 'public, max-age=86400')
  end
end