// By default we can cache-bust any image source by using the current time at compile // time (milliseconds since epoch). This value can then be overridden in cases where // you may want a longer-lived source. // -- // CAUTION: Im not really recommending that you cache-bust every single time you // compile your Less CSS; mostly, I just wanted an exuste to put JavaScript in here. @cache-version: `( new Date() ).getTime()` ; body { background-image: url( "../img/background.png?version=@{cache-version}" ) ; } div.m-header { // In this case, we want the cache-busting of this module to be static since we // know that it will not change very often. To do this, we can simply override // the global value, which will create a block-local version. @cache-version: 20140611.3 ; h1 { background-image: url( "../img/background.png?version=@{cache-version}" ) ; } }