Closed
Description
Add feature for generating urls to static files with version hash to have more control over caching in browser.
Expected behaviour
When you resolve url from StaticResource you can use append_version flag to add a hash of file (version) into url, which will change if file content changed and than for browser it's will be new url (which not exists in cache and will be reloaded)
Example
<script src="{{ url('static', filename='build/js/bundle.js', append_version=True) }}"></script>with append_version flag StaticResource will append v param into url query string with hash of the file
/static/build/js/bundle.js?v=aDc7UcFqFqXFUOYI8crlpxDAW-i41AGSNdDP8eQebSM%3D