public class ContentVersionStrategy extends AbstractFileNameVersionStrategy
VersionStrategy
that calculates a Hex MD5 hash from the content
of the resource and appends it to the file name, e.g.
"styles/main-e36d2e05253c6c7085a91522ce43a0b4.css"
.VersionResourceResolver
logger
Constructor and Description |
---|
ContentVersionStrategy() |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<String> |
getResourceVersion(Resource resource)
Determine the version for the given resource.
|
addVersion, extractVersion, removeVersion
public reactor.core.publisher.Mono<String> getResourceVersion(Resource resource)
VersionStrategy
resource
- the resource to check