history.js icon indicating copy to clipboard operation
history.js copied to clipboard

Any way to use history.js without the sessionStorage?

Open ttback opened this issue 10 years ago • 0 comments

We have seen many instances Failed to execute 'setItem' on 'Storage': Setting the value of 'History.store' exceeded the quota. Stacktrace

Error: Failed to execute 'setItem' on 'Storage': Setting the value of 'History.store' exceeded the quota.
    at Error (native)
    at d.onUnload

The QuotaExceededError seems to happen a lot on Chrome 39+ for both Windows and Mac. I wonder if there is a way to initiate History.js with a feature flag to disable the use of sessionStorage. If the quota or localstorage is not working, the history api can still work with pushstate for the current session.

ttback avatar Feb 09 '15 18:02 ttback