Google App Engine 1.7.2/Python 2.7을 사용 중이며 정적 파일의 클라이언트 캐싱을 추가하려고합니다.Static_files vs Static_dir 파이썬 App Engine의 캐시 만료 헤더
내 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가 동일하다는 인상을 받았다.
감사합니다.