Adding this code to my HTML is great for me:
<input id="alwaysFetch" type="hidden" /> <script> setTimeout(function () { var el = document.getElementById('alwaysFetch'); el.value = el.value ? location.reload() : true; }, 0); </script>
This may come in handy for those who prefer not to deal with server-side code rather than the decision made.
All he does is assign a value to the hidden input on the first load, which will remain on the second load, in which case the page will be refreshed.
Ziad
source share