Guest User

Untitled

a guest
Nov 18th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. before_filter :set_caching_headers
  2.  
  3. def set_caching_headers
  4. response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
  5. response.headers["Pragma"] = "no-cache"
  6. response.headers["Expires"] = "0"
  7. end
Add Comment
Please, Sign In to add comment