I need to generate a random number/string to append to a URL to prevent caching of an image.
Which would be better:
Math.random() or UIDUtil.createUID()
I know it more than likely will come down to user preference, but I’d like to get everyone’s opinion as to which one to use and why.
The cachebuster that I’ve always seen used is:
Math.random() of course has the possibility of not generating a unique url (however unlikely). Other than that it doesn’t matter.