Chrome Vs Firefox Back Caching

非 Y 不嫁゛ 提交于 2019-12-11 03:34:44

问题


I have a drupal site with a view that links to detail pages. The view has paging. Here is the issue:

  • In FireFox, when you go from page 8 of the view to a detail page, then click the back button, you end up at page 8 of the view. (good)

  • In Chrome, when you go from page 8 of the view to a detail page, then click the back button, you end up at page 1 of the view. (bad)

I was under the impression that chrome and firefox handled back caching in the same way. Is this not true? Is there anything I can do to fix it, i.e., so that in either case you end up at page 8 of the view after clicking the back button?

You can see what I'm talking about at http://www.instepp.umn.edu/publications

Thanks!

Laurie


回答1:


Digging around a bit more, I found the same question at: Firefox back button VS IE and Chrome back buttons

It was answered by the blog post at: http://madhatted.com/2013/6/16/you-do-not-understand-browser-history

In short, the back button on Chrome & Firefox behave differently; nothing I can do about it if my desired behavior is for the back button to return the DOM from cache. If I want the back button to return a refreshed version of the prior page, I have options as detailed in the blog post.



来源:https://stackoverflow.com/questions/31837195/chrome-vs-firefox-back-caching

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!