Class: ExpireMe::Varnish

Inherits:
Adapter show all
Defined in:
lib/expire_me/adapters/varnish.rb

Constant Summary collapse

PARTS =
{
  :age => /(max\-age=)([0-9]+)/i
}

Instance Attribute Summary

Attributes inherited from Adapter

#response

Instance Method Summary collapse

Methods inherited from Adapter

select

Instance Method Details

#set_expiration(response, seconds) ⇒ Object



8
9
10
11
12
# File 'lib/expire_me/adapters/varnish.rb', line 8

def set_expiration(response, seconds)
  super
  
  replace_caching_header :age => seconds
end