Skip to content

Instantly share code, notes, and snippets.

@AlexandreBroudin
Created October 23, 2014 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexandreBroudin/b5cc7ebf270cc60b126b to your computer and use it in GitHub Desktop.
Save AlexandreBroudin/b5cc7ebf270cc60b126b to your computer and use it in GitHub Desktop.
Less cache busting
@cacheVersion: ~"`( new Date() ).getTime()`";
.foo {
background-image: url('/foo/de/fafa/baz.svg?v=@{cacheVersion}');
}
@AlexandreBroudin
Copy link
Author

Very useful, you don't have to increment your @cacheVersion variable manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment