Created
October 23, 2014 22:35
-
-
Save AlexandreBroudin/b5cc7ebf270cc60b126b to your computer and use it in GitHub Desktop.
Less cache busting
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
@cacheVersion: ~"`( new Date() ).getTime()`"; | |
.foo { | |
background-image: url('/foo/de/fafa/baz.svg?v=@{cacheVersion}'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very useful, you don't have to increment your @cacheVersion variable manually.