refresh page via web 1.5 js to refresh signed URIs

This commit is contained in:
Russell Ballestrini 2025-03-08 19:30:51 +00:00
parent 1162034875
commit e440a3c3ef
2 changed files with 22 additions and 8 deletions

View file

@ -10,10 +10,17 @@
{%- if "thumbnail1" in product.extensions %}
<meta property="og:image" content="{{ request.app["bucket.secure_uploads.get_endpoint"] }}/{{ product.s3_path }}/thumbnail1?ts={{ product.updated_timestamp }}" />
{%- endif %}
<!--
<meta name="keywords" content="HTML, CSS, meta, data, metadata, link, unfurling, link unfurling">
<meta name="author" content="Captain Susan">
-->
{% if product.has_product_file and signed_get_object_url is not none %}
<script>
// Simple web 1.5 refresh mechanism:
// redirects to self every 9 minutes to get fresh signed & secure download URIs.
// 540000 is 9 minutes in milliseconds.
setTimeout(function() {
window.location.href = window.location.href;
}, 540000);
</script>
{% endif %}
{%- endblock append_to_head_tag_section -%}

View file

@ -10,10 +10,17 @@
{%- if "thumbnail1" in product.extensions %}
<meta property="og:image" content="{{ request.app["bucket.secure_uploads.get_endpoint"] }}/{{ product.s3_path }}/thumbnail1?ts={{ product.updated_timestamp }}" />
{%- endif %}
<!--
<meta name="keywords" content="HTML, CSS, meta, data, metadata, link, unfurling, link unfurling">
<meta name="author" content="Captain Susan">
-->
{% if product.has_product_file and signed_get_object_url is not none %}
<script>
// Simple web 1.5 refresh mechanism:
// redirects to self every 9 minutes to get fresh signed & secure download URIs.
// 540000 is 9 minutes in milliseconds.
setTimeout(function() {
window.location.href = window.location.href;
}, 540000);
</script>
{% endif %}
{%- endblock append_to_head_tag_section -%}
{%- block call_to_action -%}