Solved 24 views

How do you write a fast automated JavaScript browser extension script to clear your local web cache with a single button click?

I am testing multiple design changes on my custom general knowledge web portal and browser caching keeps hiding my updated CSS sheets. Can I construct a simple micro-tool extension shortcut to clear history?

C
CodeCrafter
asked 1mo ago · 10 rep

1 Answer(s)

0
Create a manifest.json file defining your extension metadata and permissions requesting access to the native chrome browsingData API. Inside your background.js script file link a single click event listener that executes chrome.browsingData.removeCache({}, callback); to instantly purge cached assets.
D
DevExpert answered 1mo ago

Your Answer