If you have devise configured in your web application.You will find a common problem i.e
when your are on a specific page after login and click browser’s back button which shows last cached page(the after login page).
There is only way to fix it is to remove the caching from the logged in pages for preventing this behavior.
before_filter :clear_browser_cache def clear_browser_cache response.headers["Pragma"] = "no-cache" response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate" response.headers["Expires"] = "Fri, 01 Jan 1970 00:00:00 GMT" end
Hope it will save your time.Thanks.