The AppCacheBuster is used to hook into URL relevant functions in jQuery and SAPUI5 and rewrite the URLs with a timestamp segment. The timestamp information is fetched from the server and used later on for the URL rewriting.
Node | Description |
---|
Method | Description |
---|---|
sap.ui.core.AppCacheBuster.convertURL |
Converts the given URL if it matches a URL in the cachebuster index. If not then the same URL will be returned. To prevent URLs from being modified by the application cachebuster you can implement the function |
sap.ui.core.AppCacheBuster.handleURL |
Callback function which can be overwritten to programmatically decide whether to rewrite the given URL or not. |
sap.ui.core.AppCacheBuster.normalizeURL |
Normalizes the given URL and make it absolute. |
sap.ui.core.AppCacheBuster.register |
Registers an application. Loads the cachebuster index file from this locations. All registered files will be considered by the cachebuster and the URLs will be prefixed with the timestamp of the index file. |
Converts the given URL if it matches a URL in the cachebuster index. If not then the same URL will be returned. To prevent URLs from being modified by the application cachebuster you can implement the function sap.ui.core.AppCacheBuster.handleURL
.
Param | Type | DefaultValue | Description |
---|---|---|---|
sUrl | string |
any URL |
Callback function which can be overwritten to programmatically decide whether to rewrite the given URL or not.
Param | Type | DefaultValue | Description |
---|---|---|---|
sUrl | string |
any URL |
Normalizes the given URL and make it absolute.
Param | Type | DefaultValue | Description |
---|---|---|---|
sUrl | string |
any URL |
Registers an application. Loads the cachebuster index file from this locations. All registered files will be considered by the cachebuster and the URLs will be prefixed with the timestamp of the index file.
Param | Type | DefaultValue | Description |
---|---|---|---|
sBaseUrl | string |
base URL of an application providing a cachebuster index file |