Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome Vs Firefox Back Caching

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

like image 626
Laurie Dickinson Avatar asked Aug 02 '26 07:08

Laurie Dickinson


1 Answers

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.

like image 122
Laurie Dickinson Avatar answered Aug 04 '26 12:08

Laurie Dickinson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!