A
A
Andrew2014-08-04 03:47:28
css
Andrew, 2014-08-04 03:47:28

Why does the collector of css and js files on the project work incorrectly?

Hello.
I ran into a problem on a live symfony2 project. There is a collector of static files (css and js), on command it minifies files, combines them into one file and names them with a new name.
But for some reason, after each new build, when I go to the changed page in Chrome, the new styles are not immediately applied, I have to refresh the page to apply them. Tell me, has anyone experienced this? What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-08-04
@begemot_sun

Browser side caching? try adding the get-parameter v=build version number to the link to the js and css files, and update this number when the files change.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question