0
After an Ajax call, return html as string and Gero a new page with document.write()
.
But when browsing this page, when using the browser back or forward, the urls of the pages begin to come with wyciwyg (Ex.: wyciwyg://4/http://localhost/
), Firefox ends up directing to a wyciwyg stored page (what you cache is what you get). The problem is that it is leaving this in the url, using the protocol wyciwyg
and compromising the url.
This is a bug in firefox on pages generated with document.write()
.
Delete cache and cookies https://support.mozilla.org/pt-BR/questions/939802
– M8n
Squeeze
Alt
from the keyboard, go toFile
and see if the option is enabledWork Offline
(if you are in EnglishArquivo
orFicheiro
), checks if your Firefox is updated, because it can also be a bug, recordome that this problem occurred in Firefox 3.5, but we are already in Firefox 50.– Guilherme Nascimento
@Guilhermenascimento It’s really an old bug: Bugzilla.mozilla.org/show_bug.cgi? id=387333. Only my firefox is the latest version (50.0.2). It was not in offline mode, then I put to see, I found it curious that in offline mode did not appear. I tried in version 45 tbm, but msm thing.
– Yago ML
@Yagoml could provide a very simple example of how this occurs with
document.write
?– Guilherme Nascimento
@Guilhermenascimento I simply return the html to the ajax request as a string, after which I load the page using the
write()
. The page loads normally, but when it generates history/cache on this page using the back/back, when re-generating this page, it comes with thewyciwyg://
url. I put the example code in the question.– Yago ML