在谷歌应用引擎上上传的版本问题

时间:2012-08-24 05:50:13

标签: java google-app-engine

我将我的应用程序上传到GAE for java,映射到我们的域名www.sakshum.org

默认版本为http://3.sakshumweb.appspot.com/

问题是当我们使用域名访问它似乎有一些旧版本,但如果我们访问直接URL它似乎工作正常。

关于可能出现什么问题的任何想法?

1 个答案:

答案 0 :(得分:1)

GAE上的静态文件缓存大约10分钟。您应该尝试为GWT相关文件禁用缓存。将其放入appengine-web.xml

<!-- Configure serving/caching of GWT files -->
<static-files>
  <include path="**" />

  <!-- The following line requires App Engine 1.3.2 SDK -->
  <include path="**.nocache.*" expiration="0s" />

  <include path="**.cache.*" expiration="365d" />
  <exclude path="**.gwt.rpc" />
</static-files>