In production, when minifying the css (php app/console assetic:dump), the file is re-created but the name don't change.
Thus users browser keep in cache the old version. A workaround is to add after the css name a parameter like ?v=12 to force that cache, but is there another solution? How Symfony generate the css filename? Name that file with its md5 would solve the problem, because when the file change its name would also change.
{% stylesheets filter='cssrewrite,?yui_css'
'bundles/app/css/style.css'
%}
<link rel="stylesheet" type="text/css" media="screen" href="{{ asset_url }}" />
{% endstylesheets %}
In my source the filename is still the same event after a change in the css :
<link rel="stylesheet" type="text/css" media="screen" href="/css/b3ba425.css" />