Often, when I update a JavaScript or CSS file used by a webpage, I will tack on v=<version>
. This helps me track what changes I have made but also forces the browser to get the newest version instead of using cache. Example:
<script src="functions.js?v=1.4"></script>
Is is possible, using JavaScript, to detect any query parameters used? Meaning, could function.js
detect that v
is 1.4
?