Good afternoon, please tell me how to solve the problem of getting an error in IE11 and get the JS code to work in the same place. The following error occurs:

DOM7011: Disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337

On my website, JS is conducting its work with LocalStorage - maybe because of this, it swears and disappears.

And debugger IE11 swears on the localStorage.setItem(name, value); method localStorage.setItem(name, value); And it gives an error:

Unable to get property 'setItem' of undefined or null reference

In Mozile, Chrome, Opera, everything works without complaints and in the console without errors.

  • So you have undefined not value , but localStorage . - VenZell
  • Yes, I agree, I made a mistake. Edited your question from the extra information in it. In general, the question is relevant. - user3319778
  • And what version of IE? accurate to the numbers. maybe a glitch in one of the versions. I try at 11.420.10586.0 - everything works - Alexey Shimansky
  • Version: 11.0.9600.17843 - here is the version of my IE, I realized, I will try to update again then IE - user3319778

0