public class AppCacheManifestTransformer extends ResourceTransformerSupport
ResourceTransformerHTML5 AppCache manifests.
All files with an ".appcache" file extension (or the extension given to the constructor) will be transformed by this class. The hash is computed using the content of the appcache manifest so that changes in the manifest should invalidate the browser cache. This should also work with changes in referenced resources whose links are also versioned.
|Constructor and Description|
Create an AppCacheResourceTransformer that transforms files with extension ".appcache".
Create an AppCacheResourceTransformer that transforms files with the extension given as a parameter.
|Modifier and Type||Method and Description|
Transform the given resource.
getResourceUrlProvider, resolveUrlPath, setResourceUrlProvider, toAbsolutePath
public AppCacheManifestTransformer(java.lang.String fileExtension)
public reactor.core.publisher.Mono<Resource> transform(ServerWebExchange exchange, Resource inputResource, ResourceTransformerChain chain)
exchange- the current exchange
inputResource- the resource to transform
chain- the chain of remaining transformers to delegate to