My HTML5 Application Cache Manifest is caching everything

前端 未结 3 674
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 05:03

UPDATE:

** I posted this question when this feature was really new, I realize now that this feature should not be used this way unless it is used vi

3条回答
  •  心在旅途
    2020-11-28 05:38

    Here is a hack I found out by playing around:

    I haven't found the ultimate answer but from what I've learned it seems that the manifest is not meant to be set on every page. Again I'm not sure but this is a hack that I came across. I have a page such as manifest.html that has the

     
    

    I learned that pages which do not have this will not be added to the cache however they will still continue using the application cache if on the same domain. Therfore if you include manifest.html a plain html page that has this in an iframe on everypage it will not cache that page like chrome will no longer output:

    Adding master entry to Application Cache with manifest 
    

    but if you go to network tab you will see that it is using the cache

     
    

    content of temporary_manifest_hack.html:

    
    
        
            
            Hack 4 Manifest
        
        
    
    

提交回复
热议问题