Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache bust cordova_plugins.js #71

Open
karlAlnebratt opened this issue Feb 13, 2019 · 0 comments
Open

Cache bust cordova_plugins.js #71

karlAlnebratt opened this issue Feb 13, 2019 · 0 comments
Labels

Comments

@karlAlnebratt
Copy link

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

@janpio janpio added the feature label Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants