Hi Marzia, The complete app.yaml file looks like:
application: blab version: 1 runtime: python api_version: 1 handlers: - url: /robots.txt static_files: static/files/robots.txt upload: static/files/robots.txt - url: /sitemap.xml static_files: static/files/sitemap.xml upload: static/files/sitemap.xml - url: /favicon.ico static_files: static/images/favicon.ico upload: static/images/favicon.ico - url: /static static_dir: static - url: /static/images static_dir: static expiration: "1d" - url: /.* script: blab.py And the URL I tested is: http://www.blabline.com/static/images/default_avatar.gif Maybe it's because the parent directory /static is not set to expiration 1 day? I only want one day expiration for the /static/ images directory, not for the entire parent directory. On Nov 14, 8:23 pm, Marzia Niccolai <[EMAIL PROTECTED]> wrote: > Hi Anders, > > This is strange, because it should set *both* the Expires and the > Cache-Control header to be 1 day, and both are wrong. > > I attempted to replicate this on one of my applications, but so far have not > been able to (for me it's setting both headers correctly). > > Could you send along your complete app.yaml file and the specific URL on > which you are seeing this issue? > > Thanks, > Marzia > > On Thu, Nov 13, 2008 at 11:38 PM, Anders <[EMAIL PROTECTED]> wrote: > > > When the expiration attribute is set in the app.yaml file then the > > Cache-Control header still has a max age of 600 seconds. > > > For example expiration 1 day in app.yaml: > > > - url: /static/images > > static_dir: static > > expiration: "1d" > > > Will result in the response: > > > Date: Fri, 14 Nov 2008 07:25:34 GMT > > Expires: Fri, 14 Nov 2008 07:35:34 GMT > > Cache-Control: public, max-age=600 > > Content-Type: image/gif > > Server: Google Frontend > > Content-Length: 760 > > Connection: Close > > > Shouldn't the correct max-age for Cache-Control in this case be 86400 > > (number of seconds in 1 day)? > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---