When a user clicks to a page using a link on a previous page, is it possible for the target page to, on its own accord, remove its own URL from browser history (without significant modification of the page that actually has the link on it, unless, perhaps it were a simple HTML attribute or something)?
Obviously I should not be storing sensitive information in the URL, but there are some cases where I have to store some information in the URL, and, while it is not sensitive, it is still better for it to not be stored in history. (These URLs are completely not useful to the user if they were to show up in history.)
So is there a way for me, as a webapp developer, to keep these out of history, at least in some modern browsers? (Something such as HTTP headers, JavaScript or HTML, etc on the page that loaded as a result of the URL.)
(I’m not interested in techniques such as fetching pages with AJAX, iframes, etc, where the user does not actually navigate to said URL, but still manages to get content from it.)
It looks like this is not possible.
The browser history will store the URL. The best that can be done is either to prevent the URL from going into the back/forward buttons, or use “techniques such as fetching pages with AJAX, iframes, etc, where the user does not actually navigate to said URL, but still manages to get content from it”.