Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- before_filter :set_caching_headers
- def set_caching_headers
- response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
- response.headers["Pragma"] = "no-cache"
- response.headers["Expires"] = "0"
- end
Add Comment
Please, Sign In to add comment