How to programmatically empty browser cache with HTML?

HTMLWeb DevelopmentFront End Technology

You can tell your browser not to cache your page by using the following meta tags −

<metahttp-equiv = 'cache-control' content = 'no-cache'>
<metahttp-equiv = 'expires' content = '0'>
<metahttp-equiv = 'pragma' content = 'no-cache'>

In addition, try the following:  Append a parameter/string to the filename in the script tag. Change it when the file changes.

<scriptsrc = "newfile.js?version = 1.0.0"></script>

Then the next time you update the file, just update the version i.e.

<scriptsrc = "newfile.js?version = 1.0.1"></script>
Published on 20-Mar-2018 10:55:10