通过 asp-append-version 绕过浏览器缓存在 iframe 中不起作用

Bypassing the browser cache by asp-append-version not working in iframe

我已经使用 asp-append-version="true" 来绕过浏览器缓存,但是当我在 iframe 中使用它时它不起作用。

我必须更改我的解决方案吗?

(从我上面的评论中提取我的答案)

浏览器正在缓存整个 iframe。如果您将当前日期时间附加到 iframe 的 URL,它将破坏缓存。