My webapp is running into the issue of CSS being carried back to the original page when a user clicks the back button in the browser.
Here's an outside page I link to in the navigation:
Here's what happens after I click the back button (notice the heading and background color):
I tried to solve this by using <body onload="document.refresh();">
based on a stackoverflow suggestion but it didn't solve my issue.
I'm using the Ruby on Rails framework, if that helps at all.
Are you using Turbolink (check out your Gemfile, it's a default gem in Rails 4)?
You may want to disable it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.