标签: javascript api fetch
为什么每次我运行它都将返回相同的结果。而且,仅当我手动转到https://tv-v2.api-fetch.website/random/movie并刷新页面时,结果才会更改?
fetch('https://tv-v2.api-fetch.website/random/movie') .then(res=>res.json()) .then(r=>console.log(r))
答案 0 :(得分:0)
感谢@LawrenceCherone
WF.msc
https://developer.mozilla.org/en-US/docs/Web/API/Request/cache
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control