33

I use Firefox to develop a web site and at the same time to browse the web, read my gmail, etc.

The problem is every now and then I need to delete the cache and or remove the cookies of the web app, but I want to stayed logged in in the other web pages I am visiting.

Do you know a Firefox plugin (or Firefox trick) that can help with this issue?

4

13 回答 13

27

PreferencesPrivacyremove individual cookies

They are grouped by domain, and you can eliminate all cookies from selected domain with one click.

enter image description here

Update: OptionPrivacyremove individual cookies

enter image description here

于 2009-03-22T14:40:06.990 回答
12

There are two add-ons for FF that every web developer needs and they are Web Developer Toolbar and Firebug, the Firebug extension YSlow comes in very handy too.

Web Developer Toolbar has great cache and cookie control down to individual cookies. Firebug lets you mess with the DOM and CSS directly for a page and YSlow is good for page weight and response times.

Be careful having Firebug enabled for JavaScript heavy sites as they really slow down. GMail will warn you about this and tell you to turn it off. I have had a problem trying to disbable sites with the menus when the tool is embedded in the browser at the bottom but opening it in its own windows the sites menu works fine.

I personnaly also like IE Tab which means I can quickly view a page in IE without leaving FF and I can also get it to load anything that only works in IE with it.

于 2009-03-23T13:55:00.787 回答
6

Cookie Monster might work?. Also, have you considered just using two profiles in Firefox? You could setup two profiles with two icons and use one profile for the website and the other for the non-development. The only problem would be you can only have one open at once.

Also, two browsers (Chrome, IE, Firefox, etc) might work well too.

于 2009-03-22T14:45:52.297 回答
6

WebDeveloper extension allows to delete cookies for domain. It also can clear cache, although for me Ctrl-F5 is enough usually.

于 2009-03-22T16:17:43.543 回答
5

I had the same problem and found a firefox addon to remove the cookies for the current site that you are displaying:

https://addons.mozilla.org/en-US/firefox/addon/remove-cookies-for-site/

Using that I don't have to navigate the firefox menus to find my site in the list (which was too time consuming). This does not cover the cache-issue. For that there is the Ctrl+F5 other people have mentioned. It is covered in good detail here:

What requests do browsers' "F5" and "Ctrl + F5" refreshes generate?

于 2011-02-22T06:43:31.463 回答
4

Best solution:
1) Just Click CTRL+H and search the site.
2) right click on it and choose Forget About this site (source: https://superuser.com/a/733154/249349 )

于 2015-04-13T05:19:10.157 回答
2

If you would like to use firefox, clear cache and cookies for one domain and stay logged in (and retain cache) at other sites, you could run a second firefox profile concurrently using the '-no-remote' parameter. I use this all the time to view sites I am building from an anonymous and administrative perspective at the same time.

One way to do this (in windows xp) is: make two profiles, then startmenu->run type 'firefox -profilemanager', untick the 'don't ask next time' box and load profile 1, then startmenu->run type 'firefox -no-remote' and load profile 2. You should now have two seperate firefox profiles running.

于 2009-10-07T10:25:33.120 回答
1

Clearing cookies for a single domain is easy with any one of a number of tools. Clearing the cache for a single domain or at the individual page level is sometimes useful, but hasn't turned out so easy for me thus far.

One specific situation is changing a meta redirect, where you can't just ctrl-F5 (you're being redirected, after all). Using a different profile isn't an acceptable general solution. Web Developer toolbar can disable the cache to test that the change is working but it's only a temporary fix, and not one that can readily be suggested to a client in order for them to view the change.

于 2011-02-03T15:54:44.770 回答
0

I use SQLite Manager for firefox to remove single sites from cache. All you have to do is open places.sqlite in your user profile folder using this plugin and remove the site. It's not exactly an easy solution but it does work. Make sure you backup your profile 1st!

于 2010-01-03T15:48:04.113 回答
0

Ross, I have the perfect answer for you. Get on the current tab that you want cookies cleared. Click tools > Page Info. Or install Page Info Forms & links for a shortcut. Then click the Security Tab. Then View Cookies button. It will bring up all the cookies for the relevant domain. Click the ones you want to delete, and click remove.

于 2010-04-04T22:36:29.470 回答
0

Seems we have cookies covered here.

As for cache, the trick is to make your development server force a refresh. In httpd, you probably have some some cache directives to swap out for these:

   Header set Cache-Control "no-cache, must-revalidate"
   ExpiresActive On
   ExpiresDefault "now"

In header:

<meta http-equiv="cache-control" content="no-cache, no store"/>

The benefit of doing it the httpd way is that your scripts/images/css get refreshed. In that way you are not restricting yourself to just browser with web developer toolbar, you can use other browsers such as chrome that does not do the no-cache thing so easily.

于 2011-12-31T22:08:09.453 回答
0

Another extension that handles the cookie part of the question with a little more ease than the rest is Close'n forget

https://addons.mozilla.org/en-US/firefox/addon/closen-forget

You can use it by toolbar button/context menu/keyboard shortcut in order to close the current page, discarding any cookies it held.
Optionally, the site can be removed from browser history and (again optionally) all the pages you visited in the current page can be removed from browser history too.

于 2013-09-05T08:25:17.370 回答
-2

Simple solution is simple - use two different browsers.
Say chrome for your email and Firefox for dev.

Also, you have Cookie Swap. but it doesn't really work quite as smoothly as you'd like.

于 2009-03-22T15:50:44.667 回答