Answer the question
In order to leave comments, you need to log in
What to do if the browser reads the old CSS?
Hello. The situation is this:
A customer contacted me with a request to make a copy of his site, but on a different domain, with a different logo, content, and so on. Site on WP. I installed the Duplicator plugin, made a backup, uploaded it to my hosting, to my "working" domain, made all the changes, everything was fine. Again I make a backup (already changed site), attach its domain to my hosting, upload, install ... and a problem arises: everything is preserved, except for the logo. I start digging - it turns out that the browser reads the "old" css. I check css through the wp admin panel - there is all the code you need, new. I tried to replace the name of the logo itself and update it in css - it does not help, the browser still sees the old code in css. Checked with 3 browsers, as well as with 2 more devices.
Gentlemen, tell me, chyadnt?
Answer the question
In order to leave comments, you need to log in
Maybe you need to clear the cache. If the problem is on browsers that have not previously accessed this site, then most likely the cache is on the server side.
Alexander Seredenko thanks for the answer, I did not have time to try your method, but changing the name did not help. SagePtr as a result, you were right, you had to reset the cache, and then restart the server - the reason was clogged RAM.
Thank you all so much for your participation!
Try to include css like this:
Or just change the file name. Should work.
Check the path to the styles, maybe you have the path to the old styles. In the browser inspector, find the included styles and follow its link, or download it for yourself and see if it's old styles. Look at the styles at this address in other browsers after clearing the cache.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question