I am using Google App Engine 1.7.2 / Python 2.7 and trying to add client-side caching of static files.
When I specify static_dir in my app.yaml application, cache control headers will not be set.
- url: /static/images static_dir: static/images expiration: "7d 0h"
However, when I switch the specification to static_files, like the following, it becomes set.
- url: /static/images(.*) static_files: static/images/\1 upload: static/(.*) expiration: "7d 0h"
Does anyone else see this? Am I missing something? I got the impression that static_dir and static_files are equivalent if they are written as above.
Thanks!
source share