search

Home  >  Q&A  >  body text

html5 - 用localStorage做webapp的缓存,如何解决更新的问题?

PHP中文网PHP中文网2767 days ago580

reply all(2)I'll reply

  • 阿神

    阿神2017-04-17 13:21:49

    Since the client can receive updates from your application, it is guaranteed to be online.
    You can update the content in localstorage while updating the program

    reply
    0
  • 黄舟

    黄舟2017-04-17 13:21:49

    You can set a flag similar to version information in localstorage. Each time you connect to the Internet, you can use the flag to decide whether localstorage needs to be updated

    reply
    0
  • Cancelreply