If you're using firefox, create a separate profile and add devdocs documentation to it. That keeps your docs isolated from general browsing and so you reduce the risk of the browser deleting it to free up space.
I always wanted devdocs to work (long train journeys especially would suddenly be more fun) but after this happened a couple of times and I couldn't figure it out or stop it I gave up.