Change default appcache manifest file extension
This commit changes the default file extension configured with `AppCacheManifestTranformer`. This ResourceTransformer was previously considering `.manifest` files by default, but this has been changed in the official spec to `appcache`, in order not to clash with Microsoft's unregistered application/manifest type. Issue: SPR-14687
This commit is contained in:
@@ -47,7 +47,7 @@ import org.springframework.util.StringUtils;
|
||||
* thus changing the content of the manifest in order to trigger an appcache reload in the browser.
|
||||
* </ul>
|
||||
*
|
||||
* All files that have the ".manifest" file extension, or the extension given in the constructor,
|
||||
* All files that have the ".appcache" file extension, or the extension given in the constructor,
|
||||
* will be transformed by this class.
|
||||
*
|
||||
* <p>This hash is computed using the content of the appcache manifest and the content of the linked resources;
|
||||
@@ -55,7 +55,7 @@ import org.springframework.util.StringUtils;
|
||||
*
|
||||
* @author Brian Clozel
|
||||
* @since 4.1
|
||||
* @see <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#offline">HTML5 offline applications spec</a>
|
||||
* @see <a href="https://html.spec.whatwg.org/multipage/browsers.html#offline">HTML5 offline applications spec</a>
|
||||
*/
|
||||
public class AppCacheManifestTransformer extends ResourceTransformerSupport {
|
||||
|
||||
@@ -72,10 +72,10 @@ public class AppCacheManifestTransformer extends ResourceTransformerSupport {
|
||||
|
||||
|
||||
/**
|
||||
* Create an AppCacheResourceTransformer that transforms files with extension ".manifest".
|
||||
* Create an AppCacheResourceTransformer that transforms files with extension ".appcache".
|
||||
*/
|
||||
public AppCacheManifestTransformer() {
|
||||
this("manifest");
|
||||
this("appcache");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user