I have the following simple JavaScript, which I require in order to re-initialise some variables on page reload, specifically when the page is served from the Safari BFCache
To disable the BFCache, you could add an onunload="" attribute on your html body.
BFCache
onunload=""