Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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.

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.

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

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?

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 )

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.

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.

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!

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.

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.

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.

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top