Remove 'beforeunload' event when the document unloads, to enabled caching