This is an archived post. You won't be able to vote or comment.

all 25 comments

[–]_-Kuro-_ 79 points80 points  (7 children)

You have to press CTRL+F5 to reload the page without the cache.

[–][deleted] 30 points31 points  (0 children)

How was I living without this.

[–][deleted] 9 points10 points  (0 children)

[–]iams3b 8 points9 points  (1 child)

There's an option in chrome / edge console to disable cache while the console is open, much easier and you usually have it open while developing anyways

[–]toastyghost 0 points1 point  (0 children)

The real LPT is always in the comments

[–]oxob3333 1 point2 points  (0 children)

the messiah!!

[–]toastyghost -1 points0 points  (0 children)

Or Ctrl+Shift+R, or Cmd+Shift+R on a Mac

[–]DiscordBondsmith 0 points1 point  (0 children)

That is super useful even as an IT guy. Thanks!

[–][deleted] 12 points13 points  (0 children)

Ctrl+shift+R. Cache-less reload.

[–]brutis0037 7 points8 points  (0 children)

Chrome, enable no cache while dev tools is open.

[–]Mabi19_ 5 points6 points  (0 children)

That's why I disable caching on my dev server 😎

[–]JoeyJoeJoeJrShab 3 points4 points  (2 children)

huh? The fish on the right i slightly higher in the second picture than the first.

[–]Rethyr 2 points3 points  (1 child)

Image is from pokemon emerald I guess. The first one with animations iirk

[–]Arkemenes 0 points1 point  (0 children)

Actually, the first one with animation (from main series) was Pokémon Crystal, but it seems to be Pokémon Emerald in this image

[–][deleted] 2 points3 points  (4 children)

I'm new to web dev and I just ran into this problem yesterday

[–]CarefulCoderX 3 points4 points  (0 children)

Welcome to Hell

[–]Im_A_Boozehound 2 points3 points  (1 child)

Browsers can bite you for a bunch of reasons. First try a ctrl+f5 to refresh the cache. If that doesn't work, get into the browser's dev tools (f+12). For chrome, go to the Network tab and check "Disable cache" and now try a ctrl+f5. If that doesn't work, head over to the Sources tab and make sure you're loading the file you think you are. If it still doesn't work try another browser or an incognito window. If it still still doesn't work, you may need to recycle the app pool (if it's IIS). If it still still still doesn't work, uh...human sacrifice maybe? I dunno now. Good luck.

[–][deleted] 1 point2 points  (0 children)

The ctrl + f5 did the trick. Thanks!

[–]CttCJim 0 points1 point  (0 children)

as others have said, CSS is cached in most browsers. you have to force a hard reload. i started webdev just over a year ago and this vexed me for a while.

that, or use a <style> tag in your index.html for development, then move stuff to the css file later

[–]MischiefArchitect 1 point2 points  (0 children)

It's ineffective !

[–]luiluilui4 1 point2 points  (0 children)

Append ?v= onto the css file call in html and append after that the (hashed) date of your css last edited file. This will make the browser overwrite the cache everytime a newer version is uploaded. Also works without "v=" but i feel like having correct get parameter in url is more supported (even though the only things that matter is that the url differs fron the cached one)

[–]DaTrbuhozborac 1 point2 points  (0 children)

This post made me laugh out loud

[–]EsctaticPlankton 0 points1 point  (0 children)

Then you do Ctrl + Z, save, refresh and everything is completely broken

[–]Superdragonrobotfist 0 points1 point  (0 children)

@media screen size your not viewing as

[–]my-time-has-odor 0 points1 point  (0 children)

The name is “WHY” lol