HTML5 Cache — Is it possible to have several distinct caches for a single URL?

前端 未结 7 1215
遥遥无期
遥遥无期 2020-12-09 12:57

Every URL can be linked to a single cache manifest. But I want several cache manifests linked to a same URL. Here is the reason:

Some files I want to be cached are r

相关标签:
7条回答
  • 2020-12-09 13:37
    CACHE MANIFEST
    
    # This is a comment.
    # Cache manifest version 0.0.1
    # If you change the version number in this comment,
    # the cache manifest is no longer byte-for-byte
    # identical.
    
    demoimages/mypic.jpg
    demoimages/yourpic.jpg
    demoimages/ourpic.jpg
    sr/scroll.js
    
    NETWORK:
    # All URLs that start with the following lines
    # are whitelisted.
    # whitelisted items are needed to help the site function, you could put regularly
    # changing items here
    http://example.com/examplepath/
    http://www.example.org/otherexamplepath/
    
    CACHE:
    # Additional items to cache.
    demoimages/allpics.jpg
    
    FALLBACK:
    demoimages/currentImg.jpg images/stockImage.jpg`
    
    0 讨论(0)
提交回复
热议问题