In my projet, we use a CDN/reverse proxy cache.
Right now, my assets looks like: "/js/custom.js". However, if I update this file, the cache must be invalidated in CDN (on cloudfront it can take few hours...).
We can use a tip, use the filemtime (timestamp format) as query string. Like: "/js/custom.js?1498555509". If i update my js file, the HTML generates a new timestamp.
I tried to hack Phalcon\Assets\Manager and Phalcon\Assets\Collection. But i don't like my code (too dirty). Anyone found a good a way?