GAE的appspot.com缓存控制标头 - HTTP状态304

lan*_*boy 2 google-app-engine

我的GAE开发(Java)上有很多鼠标悬停图像.我在appspot.com上托管了它.我得到的当前缓存控制头=无缓存,重新验证.因此,当图像悬停并且鼠标移出时,它将重新加载图像,然后这就是延迟来的地方......

我不知道如何处理这个问题.请帮忙(Java解决方案)?

已编辑==>

appengine.xml

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
    <application>s~xxxxxx</application>

    <version>1</version>

    <static-files>
        <include path="/images/**" expiration="1d" />
        <include path="/scripts/**" expiration="1d" />
        <include path="/stylesheets/**" expiration="1d" />
        <include path="/*.p12" expiration="1d" />
        <include path="/favicon.ico" expiration="1d" />
    </static-files>

    <threadsafe>true</threadsafe>

    <warmup-requests-enabled>true</warmup-requests-enabled>

    <system-properties>
        <property name="java.util.logging.config.file" value="WEB-INF/logging.properties"/>
    </system-properties>

    <sessions-enabled>true</sessions-enabled>
</appengine-web-app>
Run Code Online (Sandbox Code Playgroud)

当第一次加载映像(http://xxx.appspot.com/images/myicon.png)后,我会得到这样的东西.有两个缓存控件...我猜"无缓存"缓存控制取代了早期的私有缓存控件.

响应标题1

但是,如果我再次刷新该页面,它将返回http 1.1 304 Not Modified.

响应标题2

Tak*_*suo 5

如果您以管理员身份登录,则应用引擎会尝试禁止缓存行为.您可以通过注销或其他帐户来尝试吗?

以下是相关问题:http: //code.google.com/p/googleappengine/issues/detail?id = 8509