在 JavaScript 中,你可以使用 fetch API 来发送 HTTP 请求,并通过设置 Cache-Control 头来控制缓存。例如:
fetch('https://example.com', {
headers: {
'Cache-Control': 'no-cache'
}
})
.then(response
在 JavaScript 中,你可以使用 fetch API 来发送 HTTP 请求,并通过设置 Cache-Control 头来控制缓存。例如:
fetch('https://example.com', {
headers: {
'Cache-Control': 'no-cache'
}
})
.then(response