It might not be the best solution but I used Javascript to prevent this error from appearing.
I added history.replaceState({}, '', 'yourPage.php');
to the onclick=""
attribute of the submit button, see this example:
<form action="yourPage.php" method="post">
<input type="hidden" name="value" value="someValue">
<input type="submit" name="sumitForm" onclick="history.replaceState({}, '', 'yourPage.php');" value="Pas aan">
</form>
What this does is it replaces the last page in your browser history with this page, so that when you navigate back yourPage.php
will be called and the ERR_CACHE_MISS
error does not appear anymore.
In case the current page could contain get variables you could use history.replaceState({}, '', document.referrer);
instead.
Any suggestions/better solutions are welcome...