capacitor-plugin-webview-cache-extended
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

Capacitor WebViewCache Plugin

The native Android WebView caches images. If images are replaced on the server but keep the same filename, the WebView still shows the cached images. This plugin makes it possible to clear the WebView cache if needed.

What does it do?

The plugin calls the native WebView.clearCache(true) method that clears the cache and deletes all cache files.

Install

npm install capacitor-plugin-webview-cache-extended
npx cap sync

Usage

import { Plugins } from '@capacitor/core';

const { WebViewCache } = Plugins;

...

WebViewCache.clearCache();

Readme

Keywords

Package Sidebar

Install

npm i capacitor-plugin-webview-cache-extended

Weekly Downloads

1

Version

3.0.0

License

MIT

Unpacked Size

19.1 kB

Total Files

21

Last publish

Collaborators

  • morefox