Power Your Software Testing with AI Agents and Cloud
The Native AI-Agentic Cloud Platform to Supercharge Quality Engineering. Test Intelligently and Ship Faster.
- TestMu AI (Formerly LambdaTest)
- /
- Blog
- /
- How to Clear Cache in Firefox
How to Clear Cache in Firefox
Clear cache in Firefox from Settings, then Privacy & Security, then Clear Data. Firefox can also clear the cache at exit or with Ctrl+Shift+Delete.
Last Updated on:
To clear cache in Firefox, open Settings, select Privacy & Security, scroll to Cookies and Site Data, and click Clear Data. Firefox can also drop cached files on its own every time the browser closes, and Ctrl+Shift+Delete opens the same Clear Data dialog without leaving the current tab. Clearing the cache removes stored copies of pages and images, not saved passwords. This guide covers the manual steps, the automatic setting, the keyboard shortcut route, and how AI browser agents handle the Firefox cache.
Key Takeaways
- Clearing cache in Firefox runs from Settings, then Privacy & Security, then Clear Data under Cookies and Site Data.
- Firefox clears cached files on its own at shutdown once Clear history when Firefox closes is ticked under custom history settings.
- Ctrl + Shift + Delete on Windows and Linux, or Command + Shift + Delete on macOS, opens the Firefox Clear Data dialog directly.
- Ticking only Temporary cached files and pages in the Firefox Clear Data dialog removes cached pages and leaves cookies and saved logins in place.
- Ctrl + F5 on Windows or Command + Shift + R on macOS forces Firefox to reload one page from the server without emptying the whole cache.
- Playwright and Selenium start Firefox in a temporary profile, so a cache cleared by hand in a personal Firefox profile does not change an automated run.
Steps to Clear Cache in Firefox Manually
Here’s how to clear cache in Firefox browser manually:
- Open the Firefox browser and click on the three horizontal lines in the top-right corner.
- Click Settings from the menu.
- Click on the Privacy & Security option from the left sidebar.
- Scroll down to the Cookies and Site Data section and click Clear Data.
- Click Clear to confirm.


Note: Test websites on real Firefox browsers. Try TestMu AI Today!
Steps to Clear Cache in Firefox Automatically
To clear your cache automatically, Firefox can be set up to remove all cached data each time you close the browser.
- Start by opening Firefox Settings, then, click Privacy & Security and scroll to the History section. In the field next to Firefox will, choose Use custom settings for history.
- Once additional options appear, tick the checkbox labeled Clear history when Firefox closes. Click Settings located beside this checkbox.
- Finally, click Save Changes. From now on, Firefox will remove your cache data whenever you close the browser.



The same custom history settings control how you clear history in Firefox, so leaving the other boxes unticked keeps browsing history and removes only cached files at shutdown.
Steps to Clear Cache in Firefox With Keyboard Shortcuts
To clear the cache in Firefox with keyboard shortcuts, follow these steps:
- Open the window to clear history by pressing Ctrl + Shift + Delete (Windows/Linux) or Command + Shift + Delete (macOS)
- Press the Tab key to navigate to the When dropdown and select the desired range.
- Again, press the Tab key to navigate to the list of data options, then use the arrow keys to scroll to the Temporary cached files and pages option and press the Space key to select it.
- Press the Enter key to clear the cache.
The same key combination opens a clear browsing data dialog in Chromium browsers, so the steps to clear cache in Edge start the same way but use different checkbox labels.
How Do AI Browser Agents Handle the Firefox Cache?
AI browser agents do not reuse the Firefox cache you clear by hand. Playwright and Selenium launch Firefox in a fresh temporary profile, so each run starts with an empty cache and discards it when the browser closes.
- Temporary profile per run: Playwright firefox.launch() and a GeckoDriver session both create a throwaway profile directory and delete it at the end of the run.
- Persistent context: Playwright launchPersistentContext() reuses a profile folder you name, which keeps the disk cache between runs and can serve an agent a page you have already fixed.
- Firefox cache preferences: the Selenium Firefox driver accepts browser.cache.disk.enable set to false through moz:firefoxOptions, which stops the session writing a disk cache at all.
- Cookies are not cache: deleteAllCookies() in Selenium clears cookies and leaves cached pages and images untouched, so a stale asset survives the call.
- Cache-Control headers: an agent that reloads a page still gets the cached copy unless the request bypasses cache, the same rule that makes Ctrl + F5 different from a normal reload.
Clearing the Firefox cache by hand fixes what you see in your own browser only. An automated run needs its own clean state, so delete the profile directory the agent reuses or launch without a persistent context. The manual steps to clear browser cache remain the right fix when a person reports a stale page.
Conclusion
Now you know how to keep Firefox running smoothly by clearing its cache, either manually or automatically. While cached files help websites load faster, too many old files can slow down your browser and might expose your private information. Whether you choose to clear your cache manually or set Firefox to do it automatically when you close it, the process is quick and easy.
Author
Tahneet Kanwal is a freelance technical content writer with over 2 years of hands-on experience in frontend development and technical writing. She holds a B.Tech in Information Technology from University College of Engineering and Technology (UCET). Tahneet creates clear, SEO-optimized content on web technologies, software testing, and automation tools, leveraging her skills in HTML, CSS, JavaScript, React, Tailwind CSS, and various tools like VS Code, GitHub, Figma, and Canva. She is the author of 30+ technical blogs and an open-source contributor through Hacktoberfest. She has also participated in the Google Cloud Arcade Facilitator Program and holds certifications as a Meta Android Developer (Coursera) and in Web Development (Internshala). Over time, she has evolved her writing to prioritize structure, readability, and SEO while maintaining technical depth.
Firefox Cache FAQs
Did you find this page helpful?
More Related Blogs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance
- Advanced access controls
- Advanced data retention rules
- Advanced Local Testing
- Premium Support options
- Early access to beta features
- Private Slack Channel
- Unlimited Manual Accessibility DevTools Tests



