views:

274

answers:

2

Is there a way to turn on the Last-Modified header for static resources served up by Google App Engine? I have a large zip file that my app serves up to an iPhone client app, and I'd like to only download it if the Last-Modified date indicates that it is newer than the cached copy on the iPhone.

PS: I am using the Java version of Google App Engine.

Solution: I ended up writing a simple webapp to serve up my own static resources. Not hard to do. There is a small configuration step I had to do to get App Engine to serve static files, which is documented here.

+1  A: 

There is a solution in Python given in this article

karlcow
I'm using the Java version of GAE. Still, a good resource to use, thanks.
Caffeine Coma
+1  A: 

Unfortunately, App Engine doesn't currently appear to support conditional gets for static resources. You might want to file a bug here about that.

Nick Johnson