A
A
Anatoly2018-06-11 05:37:33
Nginx
Anatoly, 2018-06-11 05:37:33

Why is one of all css files not updated?

There is an Nginx server, Wordpress is installed, I change the theme css file, but it is not updated by the server, the old version is issued.
Maybe someone has come across this, I struggled with this issue for half a day, the ideas have already ended.
We are talking about exactly one css file, the rest of the styles, pictures, html, php .. are updated by F5.
And one css is not updated - reset the cache, used 4 different browsers - the result is the same, the server gives the old version of css.
The only way to solve it is to rename the file, and then, without accessing the site, I rename it back. Then it changes.
Changing versions ?123 doesn't help either. The rights and owner of the file are the same as other files. Any suggestions on how to defeat this magic? Thank you.
The cache is completely disabled, as evidenced by changing the content only by F5.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anatoly, 2018-06-11
@Tolly

The issue can be closed, I don’t know how much it has been resolved, but now everything seems to be working.
What has been done:
1. split the css file into 3 parts - only 1 part worked, when connecting the rest it stopped.
2. I broke it into 6 parts to understand where the dog rummaged, but for some reason it all worked.
3. collected again everything in one file, now everything works.
Didn't change or remove anything from the code. I'm shocked that this is magic.

A
Andrey, 2018-06-11
@VELIK505

if this is how you do it? then what will not be updated too?

<link rel="stylesheet" href="/stylesheet/style.css?v<?=hash_file('md5', $_SERVER['DOCUMENT_ROOT'].'/stylesheet/style.css')?>">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question