禁用send_file中的缓存

时间:2017-08-08 00:31:11

标签: caching flask http-headers

有没有办法防止烧瓶在send_file中设置缓存标头,或者之后我是否必须手动操作它们?

1 个答案:

答案 0 :(得分:8)

send_file接受cache_timeout参数 - 只需将其设置为-1

即可