代码之家  ›  专栏  ›  技术社区  ›  Tushar Ahirrao

要在客户端加载GWT应用程序的.cache.html文件吗

  •  3
  • Tushar Ahirrao  · 技术社区  · 14 年前

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

    请给我建议解决办法

    谢谢

    3 回复  |  直到 14 年前
        1
  •  2
  •   Stéphane B. Ronan Quillevere    10 年前

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

    <Files *.nocache.*>
      ExpiresDefault "access"
    </Files>
    
    <Files *.cache.*>
            ExpiresDefault "now plus 1 year"
    </Files>
    
        2
  •  1
  •   dty    14 年前

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

        3
  •  1
  •   Rob Hruska MegalomanINA    13 年前

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