开发者

Using application Cache with on-line sites

I tried to use the HTML5 Application Cache to improve the performances of on-line sites (all the tutorials on the web write only about usage with off-line apps)

I created the manifest listing all the js, css and images, and the performances were really exciting, until I found that even the page HTML was cached, despite it was not listed in the manifest. The pages of the site are in PHP, so I don't want them to be cached.

From http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html :

Authors are encouraged to include the main page in the manifest also, but in practice the page that referenced the manifest is automatically cached even if it isn't explicitly mentioned.

Is there a way to have this automatic caching disabled?

Note: I know that caching c开发者_StackOverflow社区an be controlled via HTTP headers, but I just wanted to try this way as it looks quite reliable, clean and powerful.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜