Last active
December 11, 2015 12:29
-
-
Save riix/4601266 to your computer and use it in GitHub Desktop.
Get Cache Buster Using Time Stamp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timeStamp = new Date().getTime(); | |
document.write('<script type="text/javascript" src="../js/ui.js?timeStamp='+timeStamp+'" charset="utf-8"><\/script>'); | |
// or | |
document.write('<script type="text/javascript" src="../js/ui.js?timeStamp='+Math.floor(+new Date()/1000)+'" charset="utf-8"><\/script>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment