Build an ASP.Net web app with offline functionality

后端 未结 4 622
眼角桃花
眼角桃花 2020-12-29 00:41

I\'m in the process of building an asp.net (3.5) web app and was wondering if you knew of any way I could do it so that there would be some offline functionality.

Th

4条回答
  •  温柔的废话
    2020-12-29 01:08

    Yes. This can be done as others have said, using the Cache Manifest.

    What I would suggest doing is creating a handler to generate the cache manifest, which can be dynamic.

    One thing that is painful about the cache manifest file is that unless that file changes, updates will not take place. This is where the handler comes in. Add a comment section with # as the comment character, and update a timestamp after that

    #2013-08-08 1:53:36 PM 'This is your comment section

    If this is generated by a handler, you can store in the DB when each user's page may have updated (This making it dynamic while still caching it)

    One important thing to keep in mind while using a cache manifest:

    The files that are cached must match the exact query string of those being accessed. This appears to be case-sensitive on some devices, and any query strings that exist on one MUST exist exactly the same on the other, so you need this foresight when generating your cache manifest files.

提交回复
热议问题