D
D
Dmitry2018-03-10 16:34:49
css
Dmitry, 2018-03-10 16:34:49

How to update minified styles in Chrome?

On one site I have minified css styles, including bootstrap.min.css
And the problem is that Chrome caches them and doesn't update them even when refreshing or hollow replacement on the server.
The problem was noticed when completely switching to a new container (Ubuntu->Ubuntu, Apache->Nginx).
Only Chrome of all browsers didn't update the styles after replacing them.
How can this problem be solved? (Now I solved it by renaming the files, which is rather strange to do every time you update the same bootstrap)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Bogachev, 2018-03-10
@psydvl

Now I solved it by renaming the files, which is rather strange to do

The common solution is to use links like my-file.css?v=1.0.0 and change the version number when updating. It is not necessary to rename the files themselves.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question