iPhone Web应用程序缓存持久性 [英] iPhone Web App Cache Persistence

查看:108
本文介绍了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.

这篇关于iPhone Web应用程序缓存持久性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆