Sha256: 9084d951dcf59890cf736e16cb3a43ae1a7f1a0d42a81ef453f9a7a4468f40f9

Contents?: true

Size: 216 Bytes

Versions: 35

Compression:

Stored size: 216 Bytes

Contents

module Enjoy::Cache
  extend ActiveSupport::Concern
  included do
    before_filter :set_cache_buster
  end

  protected
  def set_cache_buster
    expires_now()
    response.headers["Pragma"] = "no-cache"
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
enjoy_cms-0.4.1 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.4.0.5 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.4.0.4 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.4.0.3 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.4.0.2 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.4.0.1 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.4.0 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.4.0.beta3 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.7.4 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.7.3 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.7.2 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.7.1 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.7 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.6.2 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.6.1 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.6 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.5 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.4 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.3 app/controllers/concerns/enjoy/no_cache.rb
enjoy_cms-0.3.2.1 app/controllers/concerns/enjoy/no_cache.rb