[javascript] JavaScript hard refresh of current page

How can I force the web browser to do a hard refresh of the page via JavaScript?
Hard refresh means getting a fresh copy of the page AND refresh all the external resources (images, JavaScript, CSS, etc.).

This question is related to javascript reload page-refresh window.location

The answer is


window.location.href = window.location.href

Examples related to javascript

need to add a class to an element How to make a variable accessible outside a function? Hide Signs that Meteor.js was Used How to create a showdown.js markdown extension Please help me convert this script to a simple image slider Highlight Anchor Links when user manually scrolls? Summing radio input values How to execute an action before close metro app WinJS javascript, for loop defines a dynamic variable name Getting all files in directory with ajax

Examples related to reload

How to reload page the page with pagination in Angular 2? Button that refreshes the page on click How to reload or re-render the entire page using AngularJS PHP refresh window? equivalent to F5 page reload? How do I detect a page refresh using jquery? Reload the page after ajax success How to reload a div without reloading the entire page? One time page refresh after first page load How can I refresh a page with jQuery? How to reload a page using JavaScript

Examples related to page-refresh

How to reload page the page with pagination in Angular 2? How to force reloading a page when using browser back button? How to reload a page after the OK click on the Alert Page Refresh a page using JavaScript or HTML Check if page gets reloaded or refreshed in JavaScript Force page scroll position to top at page refresh in HTML JavaScript hard refresh of current page

Examples related to window.location

window.location.href not working window.location.href doesn't redirect How can I make a HTML a href hyperlink open a new window? JavaScript: location.href to open in new window/tab? Detect HTTP or HTTPS then force HTTPS in JavaScript What's the difference between window.location and document.location in JavaScript? JavaScript hard refresh of current page Change hash without reload in jQuery How to remove the hash from window.location (URL) with JavaScript without page refresh?