简体   繁体   English

对JSR 286 Portlet的HTML5脱机支持

[英]HTML5 offline support for JSR 286 portlets

I want my application developed using spring portlets to work when it is not connected to a network. 我希望使用Spring Portlet开发的应用程序在未连接到网络时可以工作。 I have used the HTML5 offline (using appcache) feature and developed a sample servlet and it is working perfectly fine. 我已经使用HTML5脱机(使用appcache)功能,并开发了一个示例servlet,它工作得很好。

The same is not working in portlets. 同样在portlet中不起作用。

Is there any limitation with portlet-based applications? 基于Portlet的应用程序有什么限制? I searched the Web but could not find much information on this. 我在网上搜索,但找不到太多信息。

I found the problem why it was not working for portlets. 我发现了为什么它不适用于portlet的问题。
Portal server adds "Cache-Control: no cache" in http header which prevents caching even though appcache is available. Portal Server在http标头中添加了“ Cache-Control:无高速缓存”,即使有应用程序高速缓存,它也可以防止高速缓存。

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

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