[google-appengine] Re: Caching of dynamic images

2009-12-08 Thread Pranny
Great, solved my issue too. Thanks !! On Dec 7, 10:39 pm, 风笑雪 wrote: > My script works > fine:http://keakon.appspot.com/image/agZrZWFrb25yDAsSBUltYWdlGOUSDA.jpeg > > self.response.headers['Content-Type'] = 'image/' + image.type > self.response.headers['Last-Modified'] = image.time and > image

Re: [google-appengine] Re: Caching of dynamic images

2009-12-07 Thread 风笑雪
My script works fine: http://keakon.appspot.com/image/agZrZWFrb25yDAsSBUltYWdlGOUSDA.jpeg self.response.headers['Content-Type'] = 'image/' + image.type self.response.headers['Last-Modified'] = image.time and image.time.strftime(GMT_FORMAT) or DEFAULT_LAST self.response.headers['Expires']

[google-appengine] Re: Caching of dynamic images

2009-12-07 Thread Pranny
Per my experience, the production server also behaves the same On Dec 7, 5:43 pm, 风笑雪 wrote: > You need test it on production sever, the develop server always sends > no cache header. > > 2009/12/7 Pranny : > > > One issue that i have faced while serving dynamic images is that > > images are not