5 Tips and Tricks for Firefox DevTools - Storage Inspector
Tags: javascript, productivity, cookies, devtricks
Published: 2019-09-03 14:25:07

---
title: 5 Tips and Tricks for Firefox DevTools - Storage Inspector
published: true
canonical_url: http://alexlakatos.com/devtricks/2019/09/03/firefox-devtools-tricks-storage.html
tags: javascript, productivity, cookies, devtricks
cover_image: http://alexlakatos.com/img/posts/devtricks/storage/devtricks-storage-inspector.png
series: 5 Tips and Tricks for Firefox DevTools
---

This is a series I try to keep up with, I’ve gathered so many tricks over the years. If you’ve liked this or want to see more, I’m [@lakatos88 on Twitter](https://twitter.com/lakatos88), follow me there!

_This is the sixth post in [a series](/devtricks/) of productivity tips and tricks to help you debug web applications with Firefox Devtools. It shows you 5 tips & tricks for working with the Storage Inspector in the Firefox Developer Tools._

I use the Storage Inspector as a quick way to debug all the types of storage a web application can use in the browser. And sometimes I use it to mess with tracking data stored there as well 😅.

I think the ones I use the most are the Cookies and the IndexedDB tools, but recently I’ve found myself spending an increasing amount of time looking at Cache Storage, with the Cache API gaining popularity as part of the ServiceWorker life cycle.

#### Edit cookies

You can edit all the cookies stored in your browser, in at least a partial fashion. You currently can’t edit the greyed out columns, things that get computed like creation and last accessed date, or security flags like `hostOnly` and `sameSite`. In order to edit the other fields of a cookie, just double click the cell you want to edit and type your new value.

![Edit cookies](http://alexlakatos.com/img/posts/devtricks/storage/edit-cookie.gif)

#### Delete Cookies

There are a number of ways you can delete cookies in the Storage Inspector. The easiest one is to press the Backspace key while having a row selected and that will delete the cookie. Since Firefox 68, Local Storage and Session Storage also have the ability to delete entries when you press Backspace. I think one of the most useful ones for me is the `Delete all from domain` feature. There’s a catch though, the domain has to be an exact match, so deleting cookies from `.dev.to` won’t delete cookies from `dev.to` and vice versa.

![Delete cookies](http://alexlakatos.com/img/posts/devtricks/storage/delete-cookies.gif)

#### Realtime updates for Cookies

You can see cookies being updated in real-time while the Storage Inspector is open, and the cookie rows that are being changed will flash orange.

![Realtime cookie updates](http://alexlakatos.com/img/posts/devtricks/storage/realtime-update.gif)

#### Static Snapshot for IndexedDB

You can’t see IndexedDB entries being updated in real-time while the Storage Inspector is open, they are just a snapshot from when the Storage Inspector was opened. In order to get a more current snapshot, you’ll have to use the refresh button at the top right of the panel.

![Static Snapshot for IndexedDB](http://alexlakatos.com/img/posts/devtricks/storage/refresh-update.gif)

#### Change Table Headers

You can change table headers for the tables in the Storage Inspector. While most tables are key / value pairs and it doesn’t make a lot of sense to hide anything, it is really useful to be able to do so for cookies. Right-clicking the table header will show you enabled/disabled column headers, and you can toggle them.

![Change Table Headers](http://alexlakatos.com/img/posts/devtricks/storage/table-header.gif)