You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
291 B
11 lines
291 B
4 years ago
|
/**
|
||
|
* Generates a cachebuster string. This only modifies the path in the browser version
|
||
|
* @param {string} path
|
||
|
*/
|
||
|
export function cachebust(path) {
|
||
|
if (G_IS_BROWSER && !G_IS_STANDALONE && !G_IS_DEV) {
|
||
|
return "/v/" + G_BUILD_COMMIT_HASH + "/" + path;
|
||
|
}
|
||
|
return path;
|
||
|
}
|