I am using the malihu custom scroller on a website, and I can not figure why it doesn't react the same way in the demo and on my website.
Steps :
Demo : goes back to where it was.
Website : goes back to top of list
Deactivating the custom scroller plugin solve this specific issue.
Any idea why?
I tested this on the following browsers:
As the OP said, this only works on FF.
FF has a feature called Back-Forward Cache
which remembers the entire state of the page, even the js states. This occurs for the duration the browser stays open. You can read more about it here.
If you don't want to have this occur for experience reasons, there are other posts about it on stackoverflow.
If you read the documentation for the Back-Forward Cache
, it states that it won't work if you have the Cache-Control: no-cache
response headers, which you do have enabled.
This is causing the browser to get fresh data each time instead of caching images and pages locally for faster browsing on later visits.