Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将开始编写具有离线功能的 GWT 应用程序。为了使用 html 5 的应用程序缓存功能,Web 服务器必须在清单文件中返回一个“filetype: text/manifext”标头。有谁知道我如何在 GWT 托管模式下返回此标头?
如果您使用的是嵌入式 Jetty 服务器,只需创建一个过滤器,它将拦截对清单文件的请求,并添加一个新的标头。或者,您可以使用 servlet 生成清单文件。或者您可以使用 -noserver 标志,并根据您的服务器文档设置标头。有很多方法。