Preventing iframe caching in browser

前端 未结 13 1414
自闭症患者
自闭症患者 2020-11-29 18:03

How do you prevent Firefox and Safari from caching iframe content?

I have a simple webpage with an iframe to a page on a different site. Both the outer page and the

13条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 18:40

    Make the URL of the iframe point to a page on your site which acts as a proxy to retrieve and return the actual contents of the iframe. Now you are no longer bound by the same-origin policy (EDIT: does not prevent the iframe caching issue).

提交回复
热议问题