是否requests
Python默认缓存数据包?
例如,
import requests
resp = requests.get('https://some website')
响应会被缓存吗?如果是这样,我该如何清除它?
Add a 'Cache-Control: no-cache'
header:
self.request = requests.get('http://google.com',
headers={'Cache-Control': 'no-cache'})
See https://stackoverflow.com/a/55613686/469045 https://stackoverflow.com/a/55613686/469045以获得完整的答案。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)