Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have a domain,

example.com

Iframe's source is,

server1.example1.com

The problem is, I would like to refresh the iframe with JavaScript inside my iframe, when I location.reload() the page, Iframe loads empty and this only happens in chrome, How can I fix this?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
131 views
Welcome To Ask or Share your Answers For Others

1 Answer

perhaps try this:

// Reload the current page, without using the cache
document.location.reload(true); 

source: https://developer.mozilla.org/en-US/docs/Web/API/Location.reload

I know Chrome does some pretty clever things with its cache, so maybe that will help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...