Disable caching in send_file

a 夏天 提交于 2019-12-13 13:57:22

问题


Is there a way to prevent flask from setting caching headers in send_file or do I have to manipulate them manually afterwards?


回答1:


send_file accepts cache_timeout parameter - just set it to -1



来源:https://stackoverflow.com/questions/45557539/disable-caching-in-send-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!