append file hash to frontend Webpack bundle for cachebusting instead of random string

This commit is contained in:
alecmerdler 2017-06-08 13:08:38 -07:00
parent f0dd2e348b
commit 9db3600463
3 changed files with 14 additions and 37 deletions

View file

@ -22,12 +22,12 @@
<meta property="og:image" content="{{ preferred_scheme }}://{{ hostname }}/static/img/quay_preview.png" />
<!-- /Icons -->
{% for style_path, cache_buster in main_styles %}
<link rel="stylesheet" href="/static/{{ style_path }}?v={{ cache_buster }}" type="text/css">
{% for style_path in main_styles %}
<link rel="stylesheet" href="/static/{{ style_path }}" type="text/css">
{% endfor %}
{% for style_path, cache_buster in library_styles %}
<link rel="stylesheet" href="/static/{{ style_path }}?v={{ cache_buster }}" type="text/css">
{% for style_path in library_styles %}
<link rel="stylesheet" href="/static/{{ style_path }}" type="text/css">
{% endfor %}
{% block added_stylesheets %}
@ -57,16 +57,16 @@
<script src="{{ script_url }}"></script>
{% endfor %}
{% for script_path, cache_buster in library_scripts %}
<script src="/static/{{ script_path }}?v={{ cache_buster }}"></script>
{% for script_path in library_scripts %}
<script src="/static/{{ script_path }}"></script>
{% endfor %}
{% block added_dependencies %}
{% endblock %}
{% for script_path, cache_buster in main_scripts %}
<script src="/static/{{ script_path }}?v={{ cache_buster }}"></script>
{% for script_path in main_scripts %}
<script src="/static/{{ script_path }}"></script>
{% endfor %}
{% if sentry_public_dsn %}