Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Form/JavaScript not working on IE 11 with error DOM7011

The register button for our ASP.net form, which uses the __postback function stopped working on IE 11, from the developer console, it shows:

DOM7011: The code on this page disabled back and forward caching. For more information, see: http://go.microsoft.com/fwlink/?LinkID=291337.

Does anyone know how to get around with this? What is this caching thing and why does it mess up forms. I seen similar complaints about this from others.

like image 772
eastboundr Avatar asked Feb 20 '14 22:02

eastboundr


People also ask

How do I fix dom7011?

Tools > Compatibility View settings > Uncheck the option "Display intranet sites in Compatibility View" . Click on Close . It may re-launch the page and then your problem would be resolved.

How do I view Javascript errors in IE 11?

Load you website, then press f12 to display the Developer tool.. any errors that have occurred will be listed in the Developer tool console. Display the Developer tool, selecting the Debug tab, select an option on the dropdown on that tab, 'Break on all exceptions' or 'Break on unhandled exceptions'.


2 Answers

This issue occurs if the server sends a "Cache-control:no-store" header or sends a "Cache-control:no-cache" header.

like image 58
Máťa - Stitod.cz Avatar answered Sep 22 '22 01:09

Máťa - Stitod.cz


I have seen exactly the same error, also with IE11. In my case the issue occurred when user clicked <button> element, which was inside <form> tags.

The issue was remedied, by placing the <button> outside of <form> tags.

like image 28
Matilda Smeds Avatar answered Sep 21 '22 01:09

Matilda Smeds