iPhone Web应用程序缓存持久性

问题描述:

我怎么能写一个ASP.NET(C#)应用程序将呈现页面可以在iPhone被永久缓存当书签作为主屏幕图标?我试图在后面的code设置这个Response.ExpiresAbsolute = DateTime.MaxValue;但无济于事。服务器code仍执行每一个主屏幕图标启动时。

How can I write an ASP.NET (C#) application that will render a page can be permanently cached on the iPhone when it is bookmarked as a "Homescreen Icon"? I have tried setting this on the code behind "Response.ExpiresAbsolute = DateTime.MaxValue;" but to no avail. The server code is still executed every time the home screen icon is launched.

您需要通过HTML5缓存和应用程序清单文件进行此设置。泰华集团WHATWG已发布一个 的规范草案。

You need to set this up through HTML5 cache and app manifest files. Thw WhatWG group has posted a draft specification.