Add the server's revision to an asset URL.
// Server option
revision: 'v2'
function handler(state) {
return {
image: state.bust('/img/logo.svg'),
// '/img/logo.svg?v=v2'
thumbnail: state.bust('/img/logo.svg?size=small')
// '/img/logo.svg?size=small&v=v2'
}
}
An existing v parameter is preserved. An empty revision adds no parameter.
Next: CORS →