In my case, the iframe was a hidden iframe (width and height of zero).
This iframe is just a workaround from an inherited system developed 12 years ago. But still used currently for the current application.
To solve this problem, I simply redirected the page loaded in the iframe to a blank page.
Example:
page_loaded_into_iframe.php
<?php <script> alert("hello world"); location.href = "about:blank"; </script>
After clicking the "Back" button, the browser will reload the blank page.
Remember that this may not apply if your case is not like mine.
source share