Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

loio

94e0c33e22474538a65f5f5b4920cdaf
view on: demo kit nightly build | demo kit latest release

Application Cache Buster: Enhanced Concept


The enhanced concept for application cache buster takes care about most of the URLs in a
general way.
The first iteration of the Application Cache Buster only supports files which have been
loaded via jQuery.ajax. The enhanced concept supports the transformation of URLs for
jQuery.sap.includeScript, jQuery.sap.includeStyleSheet, and properties of the type
sap.ui.core/URI. Additionally the enhanced concept allows to register components or
base URLs which are considered by the Application Cache Buster. This base URL is used to
load the index file with the timestamp information.

Registration of external URLs


If you do not specify all the applications in the bootstrap configuration, you can also
register them during runtime. To register additional locations, use the following API:

sap.ui.core.AppCacheBuster.register("/sap/bc/my/other/component");

Avoid handling of specific URLs


To avoid handling of specific URLs, you can override the default behavior as follows:

sap.ui.core.AppCacheBuster.handleURL = function(sURL) {
return sURL !== "my/specific/url";
};

You might also like