Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Yes, I'm aware of that. But sometimes even keeping the dev tools open doesn't clear the cache. Probably it's some bug.


sort by: page size:

Can't tell from your UI screenshot, but quite often loading a page with devtools open will disable the cache. I forget if this is the default behavior or not.

did you have caching disabled in your dev tools?

You can turn off cache in developer tools, which has saved my sanity. Nothing else is consistent.

Go to: Developer Tools (F12) -> Settings (bottom right gear)

Then there is a setting to disable cache. Although I have heard reports that it doesn't completely work, but that might have been fixed by now.


>The “disable cache” checkbox in the developer tools seems to do nothing

I've the same issue. It works sometimes and other times it doesn't.


Thanks man :) I don’t really cache the issues, they are just stored in memory. So if you close the tool, it will refetch them next time.

Hehe, that specific case is probably something that most people run into at least once. I've seen several cases of it in production too, where someone refactored something years in the past and accidentally disabled the cache without anyone noticing.

I don't understand cache fully, but I do know that if you open Dev Tools in Chrome and long-press the Refresh button, it will give you a drop down with the option "Empty Cache and Hard Reload", and also shows you that Shift+Cmd+R is just Hard Reload without emptying the cache. Sometimes I need to do this, but I don't fully know why or when.

It's not a bug, but a feature. No cache is by design.

heh, the devs were telling me about an issue they solved with caching, sounds like a side-effect

You have to clear the cache constantly.

You know what's funny I'm a fool that still had "disable cache" checked in the dev tools from a previous session when I was checking the request headers. At the current moment now that I have unchecked that in dev tools it is actually respecting the cache for those images. I can't definitively say if that is different than before but either way at least it seems cache is verifiably working with it normally now that I have that unchecked.

Ah ok good, that means you won't fix the caching..."feature" that I found. :) Thanks for the discussion!

I never had to do that, so don't know if its an issue. I suspect it might not be smart enough to invalidate cache when you switch toolchains.

Can't you just set Cache-Control: no-cache to fix that?

There is no spec to conform to to work around these cache issues. (IE was even worse in the past, shutting down the back forward cache if devtools were opened. Have fun debugging that)

But imagine Windows opening an app, drawing the last known interface state and then skipping half of the app startup code. Should apps deal with that too, or would it be considered a Windows bug?


Despite this claim. It doesn't feel like it happens. Maybe, apps aren't writing the Cache files to the right place and that's why they aren't being cleaned up.

Caching produces confusion, is my guess. You have to know it's there to realize how to fix the "oops, I made changes and they aren't showing up" issues.

I think that is because it removed the hidden tab from memory and doesn't keep a local persistent cache.
next

Legal | privacy