update cdn
This commit is contained in:
+19
-15
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user