Merge branch '5.1.x'

This commit is contained in:
Rossen Stoyanchev
2019-05-15 16:44:05 -04:00
4 changed files with 17 additions and 10 deletions

View File

@@ -4515,8 +4515,7 @@ The following example shows how to achieve the same configuration in XML:
[subs="verbatim"]
----
<mvc:resources mapping="/resources/**" location="/public/">
<mvc:resource-chain>
<mvc:resource-cache/>
<mvc:resource-chain resource-cache="true">
<mvc:resolvers>
<mvc:version-resolver>
<mvc:content-version-strategy patterns="/**"/>
@@ -4533,7 +4532,7 @@ bean so that it can be injected into others. You can also make the rewrite trans
rely on `HttpServletResponse#encodeURL`.
Note that, when using both `EncodedResourceResolver` (for example, for serving gzipped or
brotli-encoded resources) and `VersionedResourceResolver`, you must register them in this order.
brotli-encoded resources) and `VersionResourceResolver`, you must register them in this order.
That ensures content-based versions are always computed reliably, based on the unencoded file.
https://www.webjars.org/documentation[WebJars] are also supported through the