Refresh iFrame (Cache Issue)

后端 未结 5 1042
南旧
南旧 2020-12-08 16:01

We are getting a weird issue on which we are not sure what exactly cause it. Let me elaborate the issue. Suppose, we have two different html pages a.html and b.html. And a l

5条回答
  •  难免孤独
    2020-12-08 16:14

    If you can add server-side instructions to those HTML files, you could send the appropriate headers to prevent caching:

    Making sure a web page is not cached, across all browsers (I think the consensus is that the 2nd answer is best, not the accepted one)

    Simone's answer already deals with Meta tags.

    A cheap quick trick is to add a random number as a GET parameter:

    page_1.html?time=102398405820
    

    if this changes on every request (e.g. using the current time), reloading wil get forced every time, too.

提交回复
热议问题