apache / cordova-browser

Apache Cordova
Apache License 2.0
170 stars 85 forks source link

Cache bust cordova_plugins.js #71

Open karlAlnebratt opened 5 years ago

karlAlnebratt commented 5 years ago

Feature Request

Motivation Behind Feature

If we leverage browser caching. Then the cordova_plugins.js should be cached by the browser for as long as possible. Therefore it would be a nice feature to have cordova_plugins.js cache bustable

Feature Description

njectIfNecessary('cordova/plugin_list', pathPrefix + 'cordova_plugins.js?' + hash, function () {

An easy way of doing it is to add a query string to the request for cordova_plugins.js hash where the hash could be generated on build from the plugins list