We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

How can I delete cache and cookies, but keep history, every time I close Firefox?

  • 3 个回答
  • 1 人有此问题
  • 27 次查看
  • 最后回复者为 cor-el

more options

Under Privacy and Security I have Firefox set to 'Delete cookies and site data when Firefox is closed' with no exceptions listed.

When I close and reopen Firefox, the cookies are correctly deleted, but the cache is not. I have to manually go into this setting to delete them. This also happens if I go to the menu bar setting of 'history/clear recent history'.

I want to keep my history of where I've been, but clear clear cookies and the cache every time close.

This doesn't seem like an unreasonable request for a browser that bills itself as being privacy oriented, but I don't see how to do this. Doing banking, I have to manually go into Privacy each time to get this done to clear the site.

From looking at previous answers to this question it seems the current way Firefox is designed this is "not a bug, but a feature".

Using Firefox 99.0 on a 2017 Imac.

Under Privacy and Security I have Firefox set to 'Delete cookies and site data when Firefox is closed' with no exceptions listed. When I close and reopen Firefox, the cookies are correctly deleted, but the cache is not. I have to manually go into this setting to delete them. This also happens if I go to the menu bar setting of 'history/clear recent history'. I want to keep my history of where I've been, but clear clear cookies and the cache every time close. This doesn't seem like an unreasonable request for a browser that bills itself as being privacy oriented, but I don't see how to do this. Doing banking, I have to manually go into Privacy each time to get this done to clear the site. From looking at previous answers to this question it seems the current way Firefox is designed this is "not a bug, but a feature". Using Firefox 99.0 on a 2017 Imac.

所有回复 (3)

more options

Hello, you can let the cookies expire when Firefox is closed to make them session cookies instead of using "Clear history when Firefox closes" to clear all cookies including cookies with an allow exception you may want to keep. Options/Preferences -> Privacy & Security Cookies and Site Data: [ ] "Delete cookies and site data when Firefox is closed" You can create a cookie allow exception with the proper protocol (https:// or http://) for websites you want to remember you. Options/Preferences -> Privacy & Security Cookies and Site Data: "Exception" Note that you only keep cookies with an allow exception if you use "Delete cookies and site data when Firefox is closed". Deleting cookies otherwise removes all selected cookies.

more options

This doesn't solve the problem. The cookies disappear but the 'cached web content' - which is what I want gone when I close Firefox remain. Checking 'Delete cookies and site data when Firefox is closed' just doesn't work.

more options

You can use "Delete cookies and site data when Firefox is closed" to clear the cookies if you want to keep cookies with an allow exception.

For the browsing cache you can use "Clear history when Firefox closes". Note that using "Clear history when Firefox closes" to clear the cookies also clears cookies with an allow exception and clearing the Site Preferences clears all the exceptions.

  • clearing "Site Preferences" clears exceptions for cookies, images, pop-up windows, and software installation and exceptions for passwords and other website specific data
  • clearing "Cookies" via "Clear history when Firefox closes" will remove all cookies including cookies with an allow exception like cookies for websites to remember you that you may want to keep