update cdn
This commit is contained in:
+18
-6
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user