Open Bug 1236501 Opened 5 years ago Updated 1 year ago
Provide a way to clear cache for the current domain / site
I'm using a local server with https which seems to be sending particularly long cached entries. I would like to invalidate those and load new content, but no matter how many times I press Shift + Reload the entries seem to be loaded from cache again (or so does the network panel say). I hoped that there would be some button or something in the Devtools Network panel to empty the cache for this domain, but I couldn't find anything. There is a 'Clear' button at the bottom right but it just clears the log, not the cache. I had to enable the option in the general Devtools settings for "disable cache while the toolbox is open" then reload, the entries were reloaded, and then I disabled that option again. This works, but it's definitely NOT ideal.
Chrome DevTools has the "disable cache" checkbox inside the network panel directly. This seems like a useful thing to add. Let me move this to the Network bugzilla component.
Component: Developer Tools → Developer Tools: Netmonitor
So, this actually looks like a dup of bug 1349561 Or is there any difference between "Clear cache" button and "Disable Cache" checkbox? (bug 1349561 is about moving existing pref from the Options panel to the Net panel) Honza
Not really sure what is the question I'm needinfo'ed here, but as a user, I'd expect something like... - clear cache: empties the cache for that site and if you load again you start anew - disable cache: does not necessarily empty anything (although I guess it could internally), but certainly if you request a resource it would make sure it is requested from the server, not the cache
(In reply to Soledad Penades [:sole] [:spenades] from comment #3) > Not really sure what is the question I'm needinfo'ed here, but as a user, > I'd expect something like... Sorry for not being clear! I am just trying to figure out whether this is dup of bug 1349561 or not. > - clear cache: empties the cache for that site and if you load again you > start anew > - disable cache: does not necessarily empty anything (although I guess it > could internally), but certainly if you request a resource it would make > sure it is requested from the server, not the cache Yes, these are two distinct features. According to the original report it seems that this bug report is about 'clear cache' According to the comment #1 (Patrick) it seems to be about 'disable cache' Disabling cache is already implemented (from within the Options panel), but we want to move the related UI directly into the Net panel's UI. This should be handled in bug 1349561. Clear cache for specific site is not available and it looks like it's technically doable. We should be able to use nsICacheStorageService and async visitor to go over all entries in the cache. Consequently, entries that belong to specific host can be removed. However, I am not sure whether we want to have both features. I am mainly worried about the UI/UX here (being too complex). Honza
You need to log in before you can comment on or make changes to this bug.