Last active
July 22, 2020 16:07
-
-
Save HunterLarco/84965cff63fedb26f0cda9b3d03f7e11 to your computer and use it in GitHub Desktop.
This file contains 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
function appendCacheInvalidation(url) { | |
const parsed = new URL(url); | |
parsed.searchParams.set('sutraCachedInvalidation', (1e16 * Math.random()).toString(16)); | |
return parsed.toString(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment