I have been looking for a way to detect a page reload, but can't seem to find a viable solution that works.
I looked at this for reference (http://www.tedpavlic.com/post_detect_refresh_with_javascript.php), but did not work on my end. Is there an effective way to detect this?
My overall goal is to detect a page reload so that I can clear my sessionStorage.