Back Button in Firefox Doesn't Remember Scroll Position?

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
seodevhead
Forum Regular
Posts: 705
Joined: Sat Oct 08, 2005 8:18 pm
Location: Windermere, FL

Back Button in Firefox Doesn't Remember Scroll Position?

Post by seodevhead »

Hey guys... I am building a very large website and I've noticed that on about half of the pages I have built, if you click a link in Firefox while your vertical scroll position is NOT at the top of the page... go to the page... then click the back button, Firefox is not remember the previous page's vertical scroll position, and rather it is reloading the page at the very top scroll position of the page.

What is going on here? Why can't FF remember the scroll position of some of the pages I have created? Am I doing something wrong? I don't have any caching issues to speak of in my code.

Any help on this would greatly be appreciated. Thanks.
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

mine does, just tried it.. maybe you have to wait for the whole page to load?

Or perhaps you're expiring the cache?
User avatar
seodevhead
Forum Regular
Posts: 705
Joined: Sat Oct 08, 2005 8:18 pm
Location: Windermere, FL

Post by seodevhead »

Kieran Huggins wrote:mine does, just tried it.. maybe you have to wait for the whole page to load?
Or perhaps you're expiring the cache?
I have it happen on about 1/3 of all the pages I built. It is really quite odd. There are no caching issues to speak of. This doesn't happen in any other browser except Firefox. I have had it happen numerous times on various other websites as well.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

It's almost certainly caching that's causing this to happen. What are the HTTP response headers of a page that does remember and of a page that doesn't?
Post Reply