【问题标题】:Want to load .cache.html file of GWT application on client side想要在客户端加载 GWT 应用程序的 .cache.html 文件
【发布时间】:2010-06-30 08:42:19
【问题描述】:

我想在客户端(浏览器)加载 GWT 应用程序的 .cache.html 文件

但是现在每次从服务器下载 .cache.html 文件时,我在浏览器上加载我的应用程序

我不希望每次请求都下载它,因为它太重了

请给我建议解决方案

谢谢

【问题讨论】:

    标签: html apache gwt


    【解决方案1】:

    GWT 文档包括example cache settings for .htaccess on Apache

    <Files *.nocache.*>
      ExpiresDefault "access"
    </Files>
    
    <Files *.cache.*>
            ExpiresDefault "now plus 1 year"
    </Files>
    

    【讨论】:

      【解决方案2】:

      您需要配置您的服务器以告诉客户端缓存该文件。所有文件名中带有“缓存”的文件都应该这样配置。

      【讨论】:

      • 你能告诉我需要做的配置吗?
      • 我猜你正在使用你使用的标签中的 Apache。恐怕我不知道 Apache 配置。网络上应该有大量示例。我会在 Google 上搜索“Apache GWT 缓存”或其他内容。
      【解决方案3】:

      当您使用 apache 作为 tomcat 的代理时,它会变得有点棘手。 Here is how I am doing it.

      【讨论】:

        猜你喜欢
        • 2011-06-16
        • 1970-01-01
        • 2023-04-01
        • 1970-01-01
        • 1970-01-01
        • 2011-04-30
        • 1970-01-01
        • 2011-11-08
        • 2013-10-27
        相关资源
        最近更新 更多