英文:
Back-Forward in Google Chrome disabled by internal error Ignoreeventandevict
问题
最近,我遇到了一个问题,即Google Chrome中的后退前进缓存被禁用,使用后退前进缓存调试工具显示出了内部错误Ignoreeventandevict
。如果你在Google中搜索这个错误,几乎找不到任何关于这个错误的信息。我发布这个问题是为了让其他人如果遇到类似的问题,他们希望能找到这篇帖子。
对我来说,问题是我有一个pagehide
事件监听器,它正在进行history.replaceState
调用。删除history.replaceState
调用解决了问题。据我所知,这并没有被详细记录,如果Chrome提供了更详细的错误信息将会很好。请注意,我还没有在其他浏览器中测试过是否存在类似的问题。
我希望这对于那些遇到相同Ignoreeventandevict
错误的人有所帮助。
英文:
Recently I come accross an issue whereby the Back-Forward Cache in Google Chrome was disabled and using the Back-Forward Cache debug tools revealed the issue was an Internal error Ignoreeventandevict
. If you do a Google search for the error you'll find almost nothing about the error. I'm posting this question so that if others run into a similar issue they'll hopefully find this post.
The issue for me was that I had a pagehide
event listener which was making a history.replaceState
call. Removing the history.replaceState
call resolved the issue. This isn't documented as-far as I can tell, it'd be nice if Chrome provided a more detail of the error. Note I've not tested this in other browsers to see if they have a similar issue.
I hope this helps anyone struggling with the same Ignoreeventandevict
error.
答案1
得分: 1
history.replaceState
调用如果在 pagehide
处理程序中使用,会禁用 Google Chrome 中的“后退前进缓存”。
英文:
The history.replaceState
call disables the Back-Forward Cache in Google Chrome if used in a pagehide
handler.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论