Answer the question
In order to leave comments, you need to log in
Why, when updating the css file name, the old css is still loaded for the old site users on the first visit?
Why, when updating the css file name, the old css is still loaded for the old site users on the first visit?
But when you refresh the page, new css is already loaded.
Tell a newbie.
Answer the question
In order to leave comments, you need to log in
The easiest thing you can do in this situation is to update the version of the file every time you change something in the code. For example, like this:
made some changes, updated the version:
etc.
This simple trick allows you to tell user browsers exactly when to overwrite a file in the cache.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question