You can tell your browser not to cache your page using the following meta tag -
<metahttp-equiv = 'cache-control' content = 'no-cache'> <metahttp-equiv = 'expires' content = '0'> <metahttp-equiv = 'pragma' content = 'no-cache'>
Also, try the following: In a script tag Append a parameter/string to the file name. When the file changes, make the changes.
<scriptsrc = "newfile.js?version = 1.0.0"></script>
Then next time you update the file, just update the version
<scriptsrc = "newfile.js?version = 1.0.1"></script>
The above is the detailed content of How to clear browser cache using HTML programmatically?. For more information, please follow other related articles on the PHP Chinese website!