A Capacitor plugin that clears the Android WebView cache by invoking the native WebView.clearCache(true) method. Useful when images on the server are replaced but keep the same filename, causing the WebView to show stale cached images. Version 3.0.0 requires @capacitor/core ^6.0.0. The plugin is minimal, focused on a single method, and ships TypeScript types. It currently only supports Android.
npm install capacitor-plugin-webview-cache-extendedNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the plugin to clear the Android WebView cache.
Check platform before calling: if (Capacitor.isPluginAvailable('WebViewCache')) { ... }Change imports from 'import { Plugins } from '@capacitor/core' to 'import { WebViewCache } from 'capacitor-plugin-webview-cache-extended'Use import { WebViewCache } from 'capacitor-plugin-webview-cache-extended' or const { WebViewCache } = require('capacitor-plugin-webview-cache-extended')Ensure the plugin is installed and run npx cap sync, then check Capacitor.isPluginAvailable('WebViewCache') before calling.