Skip to content
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

HTML5 offline storage mechanism #6

Open
cheatsheet1999 opened this issue Sep 4, 2021 · 0 comments
Open

HTML5 offline storage mechanism #6

cheatsheet1999 opened this issue Sep 4, 2021 · 0 comments

Comments

@cheatsheet1999
Copy link
Owner

Users are online

When the browser finds manifest attribute on HTML head, it will request the manifest file.

  • If this is the first time visiting,

    • Then the browser will download the corresponding resources and store data based on the manifest file.
  • If not the first time visiting,

    • Then the browser will use the offline resource to load the page, then compares the old manifest file with the new manifest file, and update the manifest file if needed

Users are offline

  • The offline storage of HTML5 is based on a .appcache file. It works somehow like Cookie, which means web data will be downloaded and show the web data when users are offline
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

1 participant