update cdn

This commit is contained in:
2026-03-24 10:13:48 +01:00
parent 84b8735385
commit 4e5479cf31
8 changed files with 103 additions and 75 deletions
+19 -15
View File
@@ -3,30 +3,34 @@
<title>CDN TEST</title>
</head>
<body>
<h1>TEST</h1>
<h1>STATIC</h1>
<p>
direct static
direct:
<img height="128" src="static/gopher_profilovka.png" alt="gopher"/>
</p>
<p>
cdn static
<img height="128" src="https://static.cdn.zerops.app/nginx.zerops.matejpavlicek.cz/static/gopher_profilovka.png" alt="gopher"/>
cdn:
<img height="128" src="https://static.cdn.zerops.app/%%DOMAIN%%/static/gopher_profilovka.png" alt="gopher"/>
</p>
<p>
direct s3
<img height="128" src="https://storage-prg1.zerops.io/4gh42-bucket1/gopher_profilovka.png" alt="gopher"/>
</p>
<p>
cdn s3
<img height="128" src="https://storage.cdn.zerops.app/4gh42-bucket1/gopher_profilovka.png" alt="gopher"/>
</p>
<p>
fetch static
fetch cdn:
<div id="image-container"></div>
</p>
<hr/>
<h1>STORAGE</h1>
<p>
direct:
<img height="128" src="https://%%STORAGE_HOST%%/%%STORAGE_BUCKET%%/%%STORAGE_OBJECT%%" alt="s3-image"/>
</p>
<p>
cdn:
<img height="128" src="https://storage.cdn.zerops.app/%%STORAGE_BUCKET%%/%%STORAGE_OBJECT%%" alt="s3-image"/>
</p>
<script>
fetch('https://static.cdn.zerops.app/nginx.zerops.matejpavlicek.cz/static/gopher_profilovka.png')
fetch('https://static.cdn.zerops.app/%%DOMAIN%%/static/gopher_profilovka.png')
.then(response => response.blob())
.then(blob => {
const objectURL = URL.createObjectURL(blob);
@@ -45,4 +49,4 @@
});
</script>
</body>
</html>
</html>