Skip to content

Add-on to clear browser cache with a single click or via the F9 key.

License

Notifications You must be signed in to change notification settings

TenSoja/clear-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

81 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Clear Cache Icon

Clear Cache

Clear browser cache with a single click or F9 key.

Firefox v4.8 License Firefox Users Rating Mozilla Recommended

πŸ“± Available on Firefox Desktop & Android


πŸ†• What's New in v4.8

πŸ› Critical Bug Fixes

  • Fixed options i18n - Correctly loads localized labels in the options page
  • Fixed empty settings race - Default settings are now applied on first click

⚠️ Important API Limitations (Now Documented)

Due to Firefox API restrictions, when using "Site data only (cookies/storage)":

🎨 UX Improvements

  • Site data only label - Clarified option text to avoid cache confusion
  • Warning messages in Options - Clear visual indicators when "Site data only" is enabled
  • Blocked action badge - Shows a ! badge when the action can't run (e.g., site-only with incompatible types)
  • Debug mode - Optional console logs to help investigate issues

πŸ”„ Changed

  • Default behavior: "Site data only" is now OFF by default (global cache clearing)

πŸ“œ Previous Releases

v4.5 Highlights

  • Fixed "Current Tab Only" API usage
  • Context menu now respects time period settings
  • Better error handling for special URLs
  • Improved CSS and i18n

✨ Features

Feature Description
πŸš€ One-click clearing Click toolbar icon or press F9
🎯 Site data only Clear site data only for active site (cookies/storage/etc.)
⏰ Time periods 15min, 1hour, 24hours, 1week, or all time
🎨 Selective clearing Cache, cookies, history, localStorage, etc.
πŸ”„ Auto-reload Reload page after clearing (configurable)
πŸ”” Notifications Confirmation of what was cleared
🌍 8 languages EN, PT-BR, RU, AR, CS, NL, ZH-CN, ZH-TW

πŸš€ Quick Start

  1. Install from Firefox Add-ons
  2. Click the broom icon β†’ clears cache globally (default)
  3. Customize via right-click β†’ Options

Tip: Press F9 for quick cache clearing!


πŸ”’ Privacy First

  • Zero data collection - Nothing is sent anywhere
  • Local storage only - Preferences stay on your device
  • Open source - Full code transparency
  • Mozilla verified - Follows strict security guidelines

βš™οΈ Default Behavior

When you install and click without configuring:

Setting Default Effect
Data types Cache only Doesn't touch cookies/history
Scope All sites Clears cache globally
Time period All time Clears entire cache globally
Auto-reload Yes Refreshes page after clearing
Notification Yes Shows confirmation

πŸ’» Development

Load for Testing

git clone https://github.com/TenSoja/clear-cache.git
  1. Open about:debugging in Firefox
  2. Click "This Firefox" β†’ "Load Temporary Add-on"
  3. Select manifest.json

Project Structure

clear-cache/
β”œβ”€β”€ manifest.json      # Extension config
β”œβ”€β”€ background.js      # Cache clearing logic
β”œβ”€β”€ options/           # Settings page
β”œβ”€β”€ _locales/          # Translations (8 languages)
└── icons/             # Extension icons

Permissions

Permission Why
browsingData Clear cache and browsing data
tabs Detect current tab for site-specific clearing
storage Save user preferences
notifications Show clearing confirmation
contextMenus Right-click menu options

🀝 Contributors

Creator: Michel de Almeida Silva

Translators: Heimen Stoffels (NL), zer0-x (AR), TomΓ‘Ε‘ BerΓ‘nek (CS), medwuu (RU), Ariel Xinyue Wang (ZH)


β˜• Support

Use the ❀️ Sponsor button to support development via Buy Me a Coffee!


Made with ❀️ by TenSoja
πŸ‡§πŸ‡· Amazon | 🧹 Cleaning the web, one cache at a time

About

Add-on to clear browser cache with a single click or via the F9 key.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 5