简体   繁体   English

HTML5脱机缓存如何与ASP.NET一起使用?

[英]How HTML5 offline cache works with ASP.NET?

There are MasterPage.master in my ASP.NET application 我的ASP.NET应用程序中有MasterPage.master

My manifest file dose not work: 我的清单文件不起作用:

CACHE 缓存

MANIFEST CACHE: 清单缓存:

MasterPage.master 母版页

Please, tell how should I correctly write MasterPage in my manifest file? 请告诉我如何正确在清单文件中写入MasterPage?

You shouldn't try and cache your Masterpage. 您不应该尝试缓存母版页。 If you want to cache any pages that the Master Page uses, instead add the manifest attribute to the HTML tag on your Master Page. 如果要缓存母版页使用的任何页面,请改为将清单属性添加到母版页上的HTML标记中。 That way the HTML page will be cached. 这样,HTML页面将被缓存。

应用缓存

If you need more information on this, I have written an article about MVC and the Application Cache - it should give you a pretty good idea of what you are trying to achieve. 如果您需要更多有关此方面的信息,我已经写了一篇有关MVC和应用程序缓存的文章-它应该使您对要实现的目标有一个很好的了解。

http://deanhume.com/Home/BlogPost/mvc-and-the-html5-application-cache/59 http://deanhume.com/Home/BlogPost/mvc-and-the-html5-application-cache/59

Similarly, try http://diveintohtml5.ep.io/offline.html 同样,请尝试http://diveintohtml5.ep.io/offline.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM