namespace sap.ui.core.AppCacheBuster

Visiblity: public
Available since: N/A
Module: sap/ui/core/AppCacheBuster
Application Component: CA-UI5-COR

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.


Nodes Overview

Node Description

Methods Overview

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.

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.

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.

Param Type DefaultValue Description
sUrl string

any URL

sap.ui.core.AppCacheBuster.handleURL

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

sap.ui.core.AppCacheBuster.normalizeURL

Normalizes the given URL and make it absolute.

Param Type DefaultValue Description
sUrl string

any URL

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.

Param Type DefaultValue Description
sBaseUrl string

base URL of an application providing a cachebuster index file