html - asset versioning (js and css) and browser not pulling the most recent asset -
i using asset versioning on symfony2 projects when ever have new update site, before doing assetic dump changed asset number first , ran
sudo php app/console assetic:dump --env=prod then cleared cache. on windows machine when tried still uses old assets before update , hence messing lot of layout. best way prevent happening?
i think you messed assets , assetic library. assetic library gives ability process css , js resources. , assetic:dump processing js , css files (minimizing it, compile many files in 1 or other processing).
to create assets accessible need run php app/console assets:install. if want date resources folder can add together --symlink alternative command. create symlink web/bundles/yourbundle pointing src/yourbundle/resources/public.
html css symfony2 versioning assetic
No comments:
Post a Comment