xghzd 发表于 2011-12-21 08:44

web offline application

<DIV>&nbsp;offline application 的分析:<BR>&nbsp;离线的文件,怎么分配,是放到一个文件里,按快分别放到多个文件里,还是为每个html建立一个manifest。<BR>&nbsp;&nbsp;如果每个html是独立的---那可以为他单独建立,一个manifest。<BR>&nbsp;&nbsp;如果html之间是有相互关联的,那必须把相关的放到同一个manifest里来,一起更新。这样处理是为了各个文件间的逻辑一致。<BR>&nbsp;&nbsp;目前没查到相关有效的布局方式。<BR>manifest文件结构如下:</DIV>
<DIV>CACHE MANIFEST&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp; # VERSION 0.3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;# 直接缓存的文件&nbsp;&nbsp;&nbsp; <BR>CACHE:&nbsp;&nbsp;&nbsp; abc.html&nbsp;&nbsp; <BR>&nbsp;images/sofish.png&nbsp;&nbsp; <BR>&nbsp;js/main.js&nbsp;&nbsp; <BR>&nbsp;css/layout.css&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; # 需要在时间在线的文件 <BR>&nbsp;&nbsp; NETWORK:&nbsp; <BR>&nbsp; /wp-admin/&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; # 替代方案&nbsp;&nbsp; <BR>&nbsp;FALLBACK:&nbsp;&nbsp; <BR>&nbsp;/ajax/ ajax.html&nbsp;&nbsp; </DIV>
<DIV><BR>&nbsp;具体看应用了。</DIV>
<DIV>&nbsp;</DIV>
<DIV>html5 offline application<BR>参考资料:<BR><a href="http://www.w3.org/TR/html5/offline.html" target="_blank">http://www.w3.org/TR/html5/offline.html</A><BR><a href="http://i.wanz.im/2010/07/01/html5_offline_file_cache_guide_for_beginner/" target="_blank">http://i.wanz.im/2010/07/01/html5_offline_file_cache_guide_for_beginner/</A>&nbsp;&nbsp; ----html5离线存储入门<BR><a href="http://www.php100.com/html/webkaifa/HTML5/2010/0930/5543.html---HTML" target="_blank">http://www.php100.com/html/webkaifa/HTML5/2010/0930/5543.html---HTML</A> 5缓存机制之Cache Manifest配置实例<BR><a href="http://www.bennadel.com/blog/1944-Experimenting-With-HTML5-s-Cache-Manifest-For-Offline-Web-Applications.htm" target="_blank">http://www.bennadel.com/blog/1944-Experimenting-With-HTML5-s-Cache-Manifest-For-Offline-Web-Applications.htm</A></DIV>
页: [1]
查看完整版本: web offline application