In my middleman static site, my images, fonts and CSS are properly going through the asset pipeline, and getting their fingerprint suffix (img/logo-3e4a3149.png for example).
However, my mp4 files that reside in the assets/vid folder are just copied as is with the same name, which makes them stale (cache wise) when built and deployed.
How can additional asset types (mp4) be configured to be treated like images in this regard?
Well, answering my own question, although I am not sure this is the approach intended by the developers.
AssetHashextension, which provides some insight.asset_hashsetting (although the mentioned syntax does not work).So after fiddling with it, I came up with this in my
config.rbIt seems a little dirty, since all other settings in the middleman config are elegantly set using the
set :somethingDSL, but at least it works.I also noticed that this syntax works:
but it replaces the factory settings.
If someone finds a better option, please share.