2

I'll upload my html, css, and javascript to my hosting; everyhthing works great. But then say I make a change locally to my CSS, i'll upload the CSS file again, redirect to my site but my site is still using the old CSS.

I can't seem to fix it unless I chnage the filename of my CSS. Is there a way to clear my browser from thinking it can just reuse the old css?

Ari
  • 5,301
  • 8
  • 46
  • 120

3 Answers3

2

CTRL+F5

That usually does it for me when that does it.

If not you can go into your browser's settings and remove the cached files for that website.

a stone arachnid
  • 1,272
  • 1
  • 15
  • 27
H. Joseph
  • 65
  • 9
  • 1
    https://stackoverflow.com/questions/14969315/whats-the-difference-between-normal-reload-hard-reload-and-empty-cache-a – staskrak Sep 30 '18 at 16:17
1

You can go in top menu:

Firefox: History > Clear Recent History

Chrome: History > Show full history > Clear browsing data

Safari: History > Clear history

Internet Explorer: Tools > Safety > Delete browsing history…

Or there are some additional plugins/addons to clear history for each browser.

a stone arachnid
  • 1,272
  • 1
  • 15
  • 27
Szekelygobe
  • 2,309
  • 1
  • 19
  • 25
1

on maciOS using chrome I found pressing SHIFT + REFRESH hard refreshes the page and forces re-downloading of all source files and images.

Ari
  • 5,301
  • 8
  • 46
  • 120