refresh page via web 1.5 js to refresh signed URIs
This commit is contained in:
parent
1162034875
commit
e440a3c3ef
2 changed files with 22 additions and 8 deletions
|
|
@ -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 -%}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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 -%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue