floridaflatlander Posted September 10, 2012 Share Posted September 10, 2012 When I upload a php or html file the file displays immediately but when I upload a css file it takes 10 to 15 minutes to display. I've searched the web and can't seem to find an answer, this may be a server issue. After I upload a css file ... It doesn't display in ie, firefox or chrome for 10-15 minutes (it's different in this range each time I test) I try the regular refresh in ie, firefox or chrome and ctrl+f5 and it doesn't load the new css. Could it be something in my header? This just started with a new server I'm on(a cloud server) and I've had this same header for a while. Any ideas? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/268212-css-isnt-displaying-after-unload-for-10-15-minutes/ Share on other sites More sharing options...
Jessica Posted September 10, 2012 Share Posted September 10, 2012 CSS is always cached, if you need to change it often for development, add the timestamp after it using PHP. echo "css_file.css?".time(); Quote Link to comment https://forums.phpfreaks.com/topic/268212-css-isnt-displaying-after-unload-for-10-15-minutes/#findComment-1376669 Share on other sites More sharing options...
floridaflatlander Posted September 10, 2012 Author Share Posted September 10, 2012 Thanks for the reply. No I don't think that's it. I changed the css like you said the style doesn't change. The time yes the style no, it works fine on my local host in ie, firefox & chrome but not online. I've also cleared the cache, history and eveything else in Firefox and it still doesn't work or change quickly after upload. It doesn't really bother me but I do want to know why it's doing this now and why it doesn't do it on my local machine. Quote Link to comment https://forums.phpfreaks.com/topic/268212-css-isnt-displaying-after-unload-for-10-15-minutes/#findComment-1376711 Share on other sites More sharing options...
Christian F. Posted September 11, 2012 Share Posted September 11, 2012 Might be that the host is caching it, and not having configured their cache server properly. I'd ask them, just in case, to see if this is what's happening. Quote Link to comment https://forums.phpfreaks.com/topic/268212-css-isnt-displaying-after-unload-for-10-15-minutes/#findComment-1376924 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.