Socket
Book a DemoInstallSign in
Socket

capacitor-plugin-webview-cache-extended

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

capacitor-plugin-webview-cache-extended

Clears Android WebView cache

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
0
Created
Source

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();

Keywords

capacitor

FAQs

Package last updated on 14 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts