问题
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:
Unfortunately, App Engine doesn't currently appear to support conditional gets for static resources. You might want to file a bug here about that.
来源:https://stackoverflow.com/questions/1218124/how-to-enable-last-modified-header-for-static-resources-served-by-google-app-eng