Skip to content
Sign upLog in
← Back to Community

Why is my css not updating?

Profile icon
Touchcreator

In the repl preview it works, but when I view the site it my browser it doesn't

Voters
Profile icon
Touchcreator
Comments
hotnewtop
Profile icon
tussiez

It may be that your browser has cached your webpage (so it doesn't have to load from network later). This is why you aren't seeing your latest changes. Typically hitting CTRL, Shift, and R will force a cache update, but if this doesn't work, try waiting a few minutes or maybe an hour.

Profile icon
Alex731

@tussiez
I know this response is 2 years too late but I just wanted to say thank you. You saved me.

Profile icon
tussiez

@Alex731
You’re welcome!

Profile icon
Coder100

image

Profile icon
Coder100

that's because of caching. Your site caches the css files so it doesn't have to load it. Hit ctrl+shift+r and you will see it works.

Profile icon
RYANTADIPARTHI

it seems like your css is working.

Profile icon
SixBeeps

If it loads in the preview but not in the full browser tab, you're falling victim to the cache. Clearing your browser's cache usually solves this, but I find it helpful to use another browser entirely for this kind of situation (as in 1 browser for editing, 1 browser for previewing).