cache scripts for the current version

This commit is contained in:
yggverse
2025-12-24 17:21:50 +02:00
committed by freedit-dev
parent 4c0e18f747
commit e5af0016b5
9 changed files with 19 additions and 19 deletions

View File

@@ -61,7 +61,7 @@
data-srt-url="/static/podcasts/{{ item.item_id }}.srt">
</audio>
</div>
<script src="/static/js/transcript.js"></script>
<script src="/static/js/transcript.js?v={{ crate::VERSION }}"></script>
{% endif %}
{% else %} {% endmatch %}
{% endblock %}

View File

@@ -29,7 +29,7 @@
</p>
<p>The code is copied from: <a href="https://github.com/galehouse5/rsa-webcrypto-tool">https://github.com/galehouse5/rsa-webcrypto-tool</a></p>
</div>
</article>
</article>
<div class="box">
<fieldset>
<div class="field">
@@ -90,9 +90,9 @@
{% endblock %}
{% block extra %}
<script src="/static/js/encoding-helper.js"></script>
<script src="/static/js/encryption-helper.js"></script>
<script src="/static/js/decrypt.js"></script>
<script src="/static/js/encoding-helper.js?v={{ crate::VERSION }}"></script>
<script src="/static/js/encryption-helper.js?v={{ crate::VERSION }}"></script>
<script src="/static/js/decrypt.js?v={{ crate::VERSION }}"></script>
{% endblock %}
{% block aside %}

View File

@@ -31,8 +31,8 @@
<p class="has-text-danger">You must keep Private Key yourself and upload public key.</p>
<p>You can generate key pair from <a href="https://github.com/galehouse5/rsa-webcrypto-tool">rsa-webcrypto-tool</a> and upload public key here.</p>
</div>
</article>
</article>
<button id="button" class="button is-link">Generate Keys</button>
<div id="message"></div>
@@ -90,9 +90,9 @@
{% endblock %}
{% block extra %}
<script src="/static/js/encoding-helper.js"></script>
<script src="/static/js/encryption-helper.js"></script>
<script src="/static/js/key.js"></script>
<script src="/static/js/encoding-helper.js?v={{ crate::VERSION }}"></script>
<script src="/static/js/encryption-helper.js?v={{ crate::VERSION }}"></script>
<script src="/static/js/key.js?v={{ crate::VERSION }}"></script>
{% endblock %}
{% block aside %}

View File

@@ -32,7 +32,7 @@
<p>The code is copied from: <a href="https://github.com/galehouse5/rsa-webcrypto-tool">https://github.com/galehouse5/rsa-webcrypto-tool</a></p>
</div>
</article>
<div class="field is-hidden">
<textarea id="public-key" readonly>{{key}}</textarea>
</div>
@@ -132,9 +132,9 @@
{% endblock %}
{% block extra %}
<script src="/static/js/encoding-helper.js"></script>
<script src="/static/js/encryption-helper.js"></script>
<script src="/static/js/encrypt.js"></script>
<script src="/static/js/encoding-helper?v={{ crate::VERSION }}"></script>
<script src="/static/js/encryption-helper.js?v={{ crate::VERSION }}"></script>
<script src="/static/js/encrypt.js?v={{ crate::VERSION }}"></script>
{% endblock %}
{% block aside %}

View File

@@ -248,7 +248,7 @@
</nav>
{% if has_joined %}
<script src="/static/js/overtype.min.js"></script>
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
{% endif %}
{% endblock %}

View File

@@ -98,5 +98,5 @@
</div>
</div>
<script src="/static/js/overtype.min.js"></script>
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
{% endblock %}

View File

@@ -62,5 +62,5 @@
</article>
<div class="divider"></div>
<script src="/static/js/overtype.min.js"></script>
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
{% endblock %}

View File

@@ -203,5 +203,5 @@
<div class="divider"></div>
<script src="/static/js/overtype.min.js"></script>
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
{% endblock %}

View File

@@ -225,5 +225,5 @@
</div>
</div>
{% endif %}
<script src="/static/js/overtype.min.js"></script>
<script src="/static/js/overtype.min.js?v={{ crate::VERSION }}"></script>
{% endblock %}