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

Repository files navigation

Clear Cache Icon

Clear Cache

Clear browser cache with a single click or F9 key.

Firefox v4.7 License Firefox Users Rating Mozilla Recommended

📱 Available on Firefox Desktop & Android


🆕 What's New in v4.7

🐛 Critical Bug Fixes

  • Fixed "Current Tab Only" clearing ALL data globally - Now correctly clears only the current site's data
  • Resolved Firefox Beta freezing issue - Fixed crash when clicking extension or saving settings (#30)

⚠️ Important API Limitations (Now Documented)

Due to Firefox API restrictions, when using "Current Tab Only":

  • Works correctly: Cookies, Local Storage, IndexedDB, Service Workers
  • Still clears globally: Cache, History, Downloads, Form Data, Passwords

🎨 UX Improvements

  • Warning messages in Options - Clear visual indicators when "Current Tab Only" is enabled
  • Better user awareness - Notifications explain which data types were affected
  • Updated translations - New warning messages in all 8 languages

📜 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
🎯 Current tab only Clear 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 for current site
  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 Current tab Only clears active site
Time period All time Clears entire cache for site
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