我正在使用 Google App Engine 1.7.2 / Python 2.7 并尝试添加静态文件的客户端缓存。
当我在 app.yaml 中指定 static_dir 时,缓存控制标头未设置。
- url: /static/images
static_dir: static/images
expiration: "7d 0h"
但是,当我将规范切换到 static_files 时,如下所示,它确实被设置了。
- url: /static/images(.*)
static_files: static/images/\1
upload: static/(.*)
expiration: "7d 0h"
还有人看到这个吗?我错过了什么吗?我的印象是 static_dir 和 static_files 如果像上面那样写是等价的。
谢谢!