how to enable Last-Modified header for static reso

2019-06-04 02:35发布

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条回答
Melony?
2楼-- · 2019-06-04 03:07

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

查看更多
登录 后发表回答