update cdn

This commit is contained in:
2026-03-24 10:27:26 +01:00
parent 4e5479cf31
commit d8e4cc611d
3 changed files with 22 additions and 6 deletions
+18 -6
View File
@@ -1,16 +1,20 @@
<html>
<head>
<title>CDN TEST</title>
<title>CDN TEST - %%LOCATION%%</title>
</head>
<body>
<h1>STATIC</h1>
<p>
direct:
<img height="128" src="static/gopher_profilovka.png" alt="gopher"/>
<img height="128" src="static/gopher_profilovka.png" alt="unavailable"/>
</p>
<p>
cdn:
<img height="128" src="https://static.cdn.zerops.app/%%DOMAIN%%/static/gopher_profilovka.png" alt="gopher"/>
<img height="128" src="https://static.cdn.zerops.app/%%DOMAIN%%/static/gopher_profilovka.png" alt="unavailable"/>
</p>
<p>
cdn (au):
<img height="128" src="https://au-static.cdn.zerops.app/%%DOMAIN%%/static/gopher_profilovka.png" alt="unavailable"/>
</p>
<p>
fetch cdn:
@@ -22,11 +26,19 @@
<h1>STORAGE</h1>
<p>
direct:
<img height="128" src="https://%%STORAGE_HOST%%/%%STORAGE_BUCKET%%/%%STORAGE_OBJECT%%" alt="s3-image"/>
<img height="128" src="https://%%STORAGE_HOST%%/%%STORAGE_BUCKET%%/%%STORAGE_OBJECT%%" alt="unavailable"/>
</p>
<p>
cdn:
<img height="128" src="https://storage.cdn.zerops.app/%%STORAGE_BUCKET%%/%%STORAGE_OBJECT%%" alt="s3-image"/>
<img height="128" src="https://storage.cdn.zerops.app/%%LOCATION%%/%%STORAGE_BUCKET%%/%%STORAGE_OBJECT%%" alt="unavailable"/>
</p>
<p>
cdn (legacy without location prefix):
<img height="128" src="https://storage.cdn.zerops.app/%%STORAGE_BUCKET%%/%%STORAGE_OBJECT%%" alt="unavailable"/>
</p>
<p>
cdn (au):
<img height="128" src="https://au-storage.cdn.zerops.app/%%LOCATION%%/%%STORAGE_BUCKET%%/%%STORAGE_OBJECT%%" alt="unavailable"/>
</p>
<script>
@@ -37,7 +49,7 @@
const img = document.createElement('img');
img.height = 128;
img.src = objectURL;
img.alt = 'gopher'
img.alt = 'unavailable'
document.getElementById('image-container').appendChild(img);
img.onload = () => {