how to enable Last-Modified header for static resources served by Google App Engine (Java version)?

为君一笑 提交于 2019-12-08 08:52:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!