| Index: chrome/test/data/third_party/spaceport/js/util/cacheBust.js
|
| diff --git a/chrome/test/data/third_party/spaceport/js/util/cacheBust.js b/chrome/test/data/third_party/spaceport/js/util/cacheBust.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b5e1a1f55daa72b9befde3e649c650b38f3e8dc4
|
| --- /dev/null
|
| +++ b/chrome/test/data/third_party/spaceport/js/util/cacheBust.js
|
| @@ -0,0 +1,17 @@
|
| +define([ ], function () {
|
| + var cacheBust = {
|
| + buster: function buster() {
|
| + return String(Math.random()).replace(/[^0-9]/g, '');
|
| + },
|
| +
|
| + url: function cacheBustUrl(url) {
|
| + if (/\?/.test(url)) {
|
| + return url + '&' + cacheBust.buster();
|
| + } else {
|
| + return url + '?' + cacheBust.buster();
|
| + }
|
| + }
|
| + };
|
| +
|
| + return cacheBust;
|
| +});
|
|
|