HTML uploads instantly but CSS doesn't

Status
Not open for further replies.

whatamem

New Member
Messages
1
Reaction score
0
Points
1
I've been using a joke website to test x10hosting: http://whatameme.x10host.com/

I'm currently using brackets to upload files through ftp.
Whenever I make a change in the HTML and upload it, I can reload the page and I can find the changes.
However, when I make a change in the CSS and upload it, it takes many hours(sometimes around 12 hours) for the changes to be loaded onto the page.
I've also checked the file manager in x10hosting and I can see the code in the CSS file that I uploaded and it is correct.
If I go to the page itself and check its source code, it won't match the code that I uploaded.

Is this the case for everybody else with free hosting?
 

ronturon

New Member
Messages
14
Reaction score
0
Points
1
It's your browser. The old CSS is on the cache. You need to force refresh your browser. Control (or shift, I usually press them all) + F5. Just check your preferred browser's force refresh hotlink.
 

Dead-i

x10Hosting Support Ninja
Community Support
Messages
6,084
Reaction score
368
Points
83
Hi,

We do temporarily cache static files server-side, but they should only be cached for 5 minutes. In any case, you might want to try disabling Varnish caching by passing a Cache-Control header. http://x10hosting.com/support/general/varnish-cache

If disabling Varnish caching doesn't help, it would definitely be your browser doing this, as @ronturon said. ;)

Thank you,
 

ronturon

New Member
Messages
14
Reaction score
0
Points
1
Oh, just remembered Varnish. I read about it also here on the forums before.

I'm still developing locally, it's good to know about that once I upload it online.
 
Status
Not open for further replies.
Top