When a specific event happens, I store several data and want an alert to happen. When I do it right now with
return flask.redirect("the_same_url")
it loads the alert in the source code but it doesn't really alert. But when I refresh it manually it does show the alert. Is there a way to force this refresh by flask so the alert appears without me and later users having to manually refresh it?
CodePudding user response:
So yeah,
basically I used the JavaScript feature document.location.reload()
together with a
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
This isn't Flask but I could use it.