Wordpress CSS not updating

Status
Not open for further replies.

jkarakiz

New Member
Messages
16
Reaction score
0
Points
1
Hi all,

I just signed up for a new free hosting account, setup wordpress and connected my domain but whenever I try to edit the CSS on my wordpress theme and refresh my website nothing is updated or changed. At first I thought my installation of wordpress was corrupted so I reinstalled, same thing. So I installed an older version of wordpress, same thing.

I then literally installed the default wordpress theme, went into editor and removed ALL the css so it was a blank page. I then went and refreshed my website and it looked exactly the same when really there should have been absolutely no design.

I've never experienced this problem before with free hosting on x10.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
It's the Varnish cache. You're requesting what is normally a static file (CSS isn't supposed to change often) and the cache server is saying "hey, I know what's in that file!" You'd need to disable cache as detailed here then force a refresh (it may take a couple of tries if you're using Chrome; its default behaviour is to take a "force" as a suggestion and doesn't always actually request all cacheable files). You'll probably want to re-enable cache after you're finished developing to speed your site up.
 

jkarakiz

New Member
Messages
16
Reaction score
0
Points
1
It's the Varnish cache. You're requesting what is normally a static file (CSS isn't supposed to change often) and the cache server is saying "hey, I know what's in that file!" You'd need to disable cache as detailed here then force a refresh (it may take a couple of tries if you're using Chrome; its default behaviour is to take a "force" as a suggestion and doesn't always actually request all cacheable files). You'll probably want to re-enable cache after you're finished developing to speed your site up.

Thanks for the reply! Is this something new x10 have added as I've been using free hosting here for years now and never once encountered this before.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
It's been about a year and a half, I'd guess. And the cache doesn't hold onto things forever, so you'd only really notice it if you were changing things then checking right away. It's also different cache durations for different file types, and query strings make a difference.
 
Status
Not open for further replies.
Top