Currently i'm doing design of site based on symfony2, question is how to disable cache of css files? Now if i change something in css file - nothing changes in browser. When i try to cache:clear - still nothing.
config.yml:
# Assetic Configuration
assetic:
debug: "%kernel.debug%"
use_controller: true
#bundles: [ ]
#java: /usr/bin/java
filters:
cssrewrite: ~
#closure:
# jar: "%kernel.root_dir%/Resources/java/compiler.jar"
yui_css:
jar: "%kernel.root_dir%/Resources/java/yuicompressor-2.4.7.jar"
and in twig
{% stylesheets filter="cssrewrite" output="css/general.css"
"@EveCommonBundle/Resources/public/css/main.css"
"@EveCommonBundle/Resources/public/css/another.css" %}
<link rel="stylesheet" type="text/css" href="{{ asset_url }}" />
{% endstylesheets %}
What must i change to get "latest" css file in browser?
Problem is that when i change @EveCommonBundle/Resources/public/css/main.css
, in web/css
still remain old one (dumped by terminal), and it's not been recreated, that's why no "new changes" shows in browsers, and recreate that file i can only by terminal... how can i get sf2 recreate css files on each F5 in browser (in web/css
folder)?