Solved
2 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 5d ago · 10 rep
1 Answer(s)
0
Create a manifest.json file defining your extension metadata and permissions requesting access to the native chrome <code>browsingData</code> API. Inside your background.js script file link a single click event listener that executes <code>chrome.browsingData.removeCache({}, callback);</code> to instantly purge cached assets.
D
DevExpert
answered 5d ago