External CSS stylesheets

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
Davpar
Rank 0 - Newcomer
Posts: 5
Joined: Sat Nov 07, 2015 5:29 am

Re: External CSS stylesheets

Post by Davpar »

Yes - every time! Often twice in succession because I didn't believe it the first time.
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: External CSS stylesheets

Post by Albert Wiersch »

Davpar wrote: Tue Jul 17, 2018 11:08 am Yes - every time! Often twice in succession because I didn't believe it the first time.
I have no idea then, especially if it just started working for seemingly no reason. I can't think of anything other than a cache issue that would cause that.

If you could create something reproducible then someone could most likely figure it out... but I suspect that would be difficult and not worth the trouble.

Or maybe someone else has another idea of what it might have been... ? If so then please speak up. :)
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Davpar
Rank 0 - Newcomer
Posts: 5
Joined: Sat Nov 07, 2015 5:29 am

Re: External CSS stylesheets

Post by Davpar »

It still keeps doing it. Example:
My css sets <h3> font size to 1.4em. I’d prefer it smaller so I add h3{font-size:1em} to the <style> section of one page a a sample. The <h3> now renders as I want it, so I copy the new command into the css to replace the old one. Having uploaded the revised css, I return to the page I’m working on and remove the new command, as it should now be picked up by the css link. But it isn’t: it still renders as 1.4em unless I put the reduce-size command back into the <style> section. From previous experience I suspect that there is some sort of delay before the uploaded css takes effect, as it always seems to work its way through eventually.
User avatar
Albert Wiersch
Site Admin
Posts: 3783
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: External CSS stylesheets

Post by Albert Wiersch »

I tried reproducing something like this and I could reproduce the problem as long as I didn't do a forced refresh.

If I did a regular refresh then the changes in the CSS file were not picked up. If I used Ctrl+F5 then the CSS was reloaded and I could see the changes from the updated CSS file.

If you are using Ctrl+F5 to refresh and your CSS changes are still not being loaded, then do you have a proxy server or anything else between the browser and server that might be affecting what your browser is receiving? Also, are you using http or https? http would be more prone to interference from something while https should be more secure and less prone to something getting in the way.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial
Davpar
Rank 0 - Newcomer
Posts: 5
Joined: Sat Nov 07, 2015 5:29 am

Re: External CSS stylesheets

Post by Davpar »

I'm using http not https and I've been refreshing with ctrl+R rather than ctrl+f5, but I've discovered beyond doubt that it simply takes time for a CSS change to take effect so I'm no longer fazed by it. Thanks for your interest!
Post Reply