I'm currently using asset_sync to move my assets to S3 from Rails.
We serve our JS library as a bootstrap.js
which bootstraps other stylesheets/js that should be cache-controlled via the digest. Since I want to be able to change functionality to our library quickly, bootstrap.js
is short-lived and must be therefore very small, whereas the cache-digested css/js should be living forever accordingly to Rails asset pipeline principles.
The Problem now is that when I do the precompilation, the digested bootstrap.js
correctly loads the cache-digested other css/js, but the non-digest bootstrap.js
only points to the non-digest equivalents, despite me explicitly setting :digest
to true
<%= asset_path 'badgelib.js', :digest => true %>
Is there any other way to force the asset to link to the digest-version?