I have a lot mouseover images on my GAE development (Java). I hosted it at appspot.com. The current cache-control header I got = no-cache, re-validation. So, when the image hovered and mouse out , it will reload the image and then this is where latency comes...
I am not sure how to deal with this. Any help please (Java solution)?
Edited ==>
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>
When the first load the image (http://xxx.appspot.com/images/myicon.png) after deployment, I will get something like this. There are 2 cache-controls... I guess "no-cache" cache-control replaced the earlier private cache-control.
But then if I refresh that page again, it will go back http 1.1 304 Not Modified.