Created
August 16, 2021 17:39
-
-
Save dillonchr/6d1e0bbf0387eac06fc615f4e395d673 to your computer and use it in GitHub Desktop.
refresh css
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
for (const link of document.querySelectorAll('link[href^="/css/"]')) { link.setAttribute("href", link.getAttribute("href").replace(/\?.*$/, "") + `?cc=${Date.now()}`)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment