I just started to work with wordpress, and I'm having an odd issue with my style.css(locally), whenever I change the content of it, it's not being updated when I load the page.
The odd issue I'm having, is that if I type any random content in my style.css and save, the style.css in the browser when I reload will load with a partial amount of the css structure from before, the partial amount is directly proportional to the amount of character of the random content i saved!!
Example:
Full style.css:
/*
* Globals
*/
body {
font-family: Georgia, "Times New Roman", Times, serif;
color: #555;
}
Saving style.css with random content:
random content random content random content random content random
Now, reloading style.css in view source from Chrome:
/*
* Globals
*/
body {
font-family: Georgia, "Times New
The loaded css above was loaded with the amount of characters of the "random content random content random content random content random " i saved in style.css.
Also, if I change the name of my css file to another one, the file gets updated correctly. If I reload the new css file, the updates will stop working again.
This is driving me nuts. Just does not make any sense.
I tried all the following measures:
- Working entirely locally to avoid any kind of server caches. In my local server I'm using nginx as web service. I do not have any flags in my conf file to cache any kind of files.
- Erased browser cache, cookies;
- Checked if I had any wordpress cache plugins: I don't have any;
- Tried using other browsers;
- I used grep to check for any cached files in my wordpress folder: found none.
- Tried to put version in the css file, and in the link html tag of my header.