So for months on this site I've had paths to my CSS files that look like:
/css/syles.css
and they've worked fine.
Today I updated the file and saw my changes weren't being reflected in the browser. In fact, in the Chrome's Inspector's Network tab the CSS file wasn't even loading.
The only way I could get it to work was by making the path absolute, e.g.:
http://www.example.com/css/styles.css
There is no caching service on the host, nothing like Cloudflare and, of course, I cleared my browser cache.
It's not a big deal, but I'm just curious as to why this happened.
Host is your average shared server LAMP stack.
base
element referencing a different domain? "changes weren't being reflected in the browser" - but the (old) stylesheet was still being applied? Or no styles were applied? "in the Chrome's Inspector's Network tab the CSS file wasnt even loading" - what do you mean exactly? What was the server response? Or was there no server request (ie. it was pulled from the browser cache)?file://
URLs, you would see that problem.