I compress my javascripts through assetic (a block in twig for all scripts in one directory), which works fine in prod mode. Now I want to use debug mode for my prod env, so I switch assetic to debug in the config, clear the cache and unload assets with debugging.
This works for some javascripts, but not for all. Symfony adds the suffix number to them, which is higher (one at a time) on the website (javascript tag) as opposed to the real file. Sometimes clearing the cache and flushing solved the problem again, but this time noot.
For example: It resets: /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 does not appear on the first request to the site after clearing the cache.
Johni source
share