Skip to content

Commit 863c95a

Browse files
committed
Disable browser caching for entire CMS to avoid users submitting or seeing wrong data
1 parent 7ca0b45 commit 863c95a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
module Cms
22
class ApplicationController < ::ApplicationController
33
include Cms::AdminController
4+
5+
before_action :no_browser_caching
6+
7+
def no_browser_caching
8+
expires_now
9+
end
410
end
511
end

0 commit comments

Comments
 (0)