I'm compressing my javascripts via assetic (block in twig for all scripts in one dir) which works fine in prod mode. Now i want to use the debug mode for my prod env, so i switch assetic to debug in the config, clear the cache and dump the assets with debug on.
This works for some javascripts but not all. Symfony adds a suffix number to them which is higher (by one) on the website (javascript tag) in opposite to the real file. Sometimes clearing the cache and dumping again solved the problem, but noot this time.
For example: It dumps: /web/js/main_part_3_jquery-ui_6.js But uses: /web/js/main_part_3_jquery-ui_1.js
So how can i solve this?
Edit: The wron suffix doesn't appear on the first request to the site after cleaning the cache.