We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9977780 commit 7016d4eCopy full SHA for 7016d4e
custom/preview.vue
@@ -84,7 +84,10 @@ onMounted(async () => {
84
if (Array.isArray(url.value)) return;
85
try {
86
const response = await fetch(url.value, {
87
- method: 'HEAD',
+ method: 'GET',
88
+ headers: {
89
+ Range: 'bytes=0-0' // this approach is better then HEAD in terms of CDN/CORS, but same for efficiency as HEAD
90
+ },
91
mode: 'cors',
92
});
93
const ct = response.headers.get('Content-Type');
0 commit comments