Js audio's play () error report

as soon as the ajax request is successful, document.getElementById ("audio"). Play ();
normally opens this page and manually refreshes the page can play audio, but from the previous page, clicking the browser"s return button to return to this page is an error. Ask the bosses what is the reason? Is it because the return was not refreshed and ajax did not rerequest it?

clipboard.png

Mar.07,2021

The default principle of the

button browser is that history.back () will not refresh the page when there is a cache, and if it does not exist, it will, unless you manually set the header information to not be cached.
but I think you can cache it yourself, read the cache when there is a cache, if your file is obtained by sending a request;
then try to write fault-tolerant judgment in the code

.

-- try an audio, locally, no problem going forward or backward, take a look at the break point of the relevant code

Menu