Skip to content

Error storage when going offline #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
taitems opened this issue Jul 5, 2012 · 3 comments
Open

Error storage when going offline #9

taitems opened this issue Jul 5, 2012 · 3 comments

Comments

@taitems
Copy link
Contributor

taitems commented Jul 5, 2012

Is the onbeforeunload event soon enough to fire a request if the interval hasn't fired yet?

If it's not, store to localStorage and send next time the page is loaded. How long before you invalidate an error? Revisit the site/page after 7 days and the error is no longer relevant? Drop it?

@skroonenburg
Copy link
Owner

Yeah, let's go 7 days.

@taitems
Copy link
Contributor Author

taitems commented Jul 5, 2012

This is probably relevant to my other question about firing off all the requests as one or individually, as far as I know, requests can persist if fired onbeforeunload.

@taitems
Copy link
Contributor Author

taitems commented Jul 6, 2012

The Paul Irish polyfill will shine here btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants