Is there a way to prevent a JavaScript PubNub client from re-subscribing upon a user refreshing a page?

Unfortunately, this is a browser issue and there is no way to avoid this effect when running JavaScript in a browser.