GoogleChrome / GoogleChrome/samples

Service worker example triggers "offline mode" when actually it's a "confirm form resubmission"

Open
#572 2 comments 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
2.4k
Avg merge
24m
Merged PRs (30d)
2

Description

This example code:
https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/custom-offline-page/service-worker.js
works very well normally, to give a custom error page if (and only if) the application is offline.

However, in the case where I post a form submission, then post another one, then back (i.e. the back buttons hould takes me to the result of a previous post), then the SW tells me I've lost connection to the server. In other words, it's mistaking the "ERR_CACHE_MISS" / "Confirm Form Resubmission" for "ERR_INTERNET_DISCONNECTED."

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.