ministryofjustice/hwf-calculator

View on GitHub
app/controllers/concerns/disable_cache.rb

Summary

Maintainability
A
0 mins
Test Coverage
module DisableCache
  extend ActiveSupport::Concern

  private

  def disable_cache
    response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
    response.headers["Pragma"] = "no-cache"
    response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
  end
end