Send a “304 Not Modified” for images stored in the datastore

前端 未结 4 2077
迷失自我
迷失自我 2021-02-04 20:43

I store user-uploaded images in the Google App Engine datastore as db.Blob, as proposed in the docs. I then serve those images on /images/.jpg

4条回答
  •  猫巷女王i
    2021-02-04 21:04

    By the way, thanks to webob, webapp.RequestHandler provides easy way to check If-None-Match.

    if etag in self.request.if_none_match:
        pass # do something
    

提交回复
热议问题