cordova-browser icon indicating copy to clipboard operation
cordova-browser copied to clipboard

Cache bust cordova_plugins.js

Open karlAlnebratt opened this issue 6 years ago • 0 comments

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

karlAlnebratt avatar Feb 13 '19 14:02 karlAlnebratt