mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-16 04:24:23 +00:00
Fix rubocop issue
This commit is contained in:
@@ -134,7 +134,8 @@ class ApplicationController < ActionController::Base
|
||||
nil
|
||||
end
|
||||
|
||||
def set_cache_headers # https://jacopretorius.net/2014/01/force-page-to-reload-on-browser-back-in-rails.html
|
||||
# See https://jacopretorius.net/2014/01/force-page-to-reload-on-browser-back-in-rails.html
|
||||
def set_cache_headers
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user