cdn 相关问题

内容传递网络或内容分发网络(CDN)是包含放置在网络的各个节点处的数据的副本的计算机系统。

Dayjs CDN 的 Chartjs 适配器:未捕获的 ReferenceError:未定义进程

我将 CDN 用于 Chartjs 的适配器以利用 Dayjs (chartjs-adapter-dayjs-4),我收到错误 Uncaught ReferenceError: process is not defined 我需要能够使用 CDN l...

回答 0 投票 0

如何在 bootstrap 中放置 2 个相互平行的 div

我已经尝试过 col-xs-6 first child 和其他东西请说明如何仅使用引导程序 我的代码 = ` ... 我已经尝试过 col-xs-6 first child 和其他东西请说明如何仅使用引导程序 我的代码= `<div class="container"> <div class="row"> <div class="container-md bg-danger center-block "> <form> <div class="col"> <div class="text-center"> <label for="job-name">Type job name</label><br> <input type="text" class="form-control-lg border-success text-center rounded-circle " id="job-name " rows="3" placeholder="Job-name"> </div> <div> <label for="first-name">Type first name</label><br> <input type="text" class="border-dark form-control-lg-mb2 mt-2 ml-2 text-center rounded-right" id="first-name" rows="3" placeholder="first Name" required><br> </div> <div class="align-self-right" > <label for="last-name">Type last name</label><br> <input type="text" class="border-dark form-control-lg-mb2 ml-2 text-center rounded-right" id="last-name" rows="3" placeholder="Enter your last Name" required><br> </div> <div class="align-self-right" > <label for="last-name">Type Phone number</label><br> <input type="text" class="border-dark form-control-lg-mb2 ml-2 rounded-right" id="last-name" rows="3" placeholder="Enter your Number"><br> </div> <div class="align-self-right" > <label for="last-name">Type Email</label><br> <input type="text" class="border-dark form-control-lg-mb2 ml-2 rounded-right" id="last-name" rows="3" placeholder="Enter your Email"><br> </div> <div class="align-self-right" > <label for="last-name"> Age</label><br> <input type="date" class="border-dark form-control-lg-mb2 ml-2 rounded-right" id="last-name" rows="3" placeholder="Enter your last Name"><br> </div> </div> <div class="col"> <div class="text-right" > <label for="last-name"> Age</label><br> <input type="date" class="border-dark form-control-lg-mb2 ml-2 rounded-right" id="last-name" rows="3" placeholder="Enter your last Name"><br> </div> </div> </form> </div> </div> </div>` 我试过 col-xs-6 不工作我想把这些 div 放在一起,或者我们可以说彼此平行,但它没有改变

回答 0 投票 0

如何创建媒体 CDN 来源?我有一些错误

我正在尝试使用 Google Media CDN,我开始使用示例: https://codelabs.developers.google.com/mediacdn-ls-codelab#10 我创建了一个具有公共访问权限的谷歌存储桶,之后: gcloud 边缘...

回答 0 投票 0

如果我的页面在 GitHub 页面上,我可以放弃 CDN 吗?

我们的组织有一个托管在 GitHub 上的网页,HTML 有几个 CDN 链接(jQuery、Bootstrap、Fontawesome 等...)。然而,有人告诉我 GitHub 已经是一个 CDN,所以我们可以删除所有...

回答 0 投票 0

有什么方法可以了解更多关于“未指定”CloudFront 引荐来源网址的信息吗?他们是坏兆头吗?

查看 CloudFront 日志时,未指定我的照片服务 CDN 最常见的引荐来源网址。我试图更多地了解为什么会这样,以及请求可能来自哪里……

回答 1 投票 0

为 Flask 站点提供来自 Cloudfront 的图像 [重复]

我有一个包含大量图像的 Flask 站点,因此我想使用 CDN 从不同的地方为它们提供服务。 我想采用最简单的解决方案并避免使用 Flask CDN

回答 1 投票 0

Cloudflare 的 RackBeat Webhook 问题

当我们更新 Rackbeat 中的库存时,它的 webhook 会触发,并且该 webhook 使用 WooCommerce REST API 将更新的库存发布/修补到关联/集成的网站中。 我们正在使用 woocomm...

回答 0 投票 0

lit 元素 CDN 汇总包文件:从外部 jsp 文件访问 cdn 包文件中包含的功能

我使用 rollup.config.js 创建了一个简单的 lit 元素包文件。此捆绑文件上传到 Netstorage 中。这就是我的 lit 元素的样子: 从 "lit/

回答 1 投票 0

在托管网站时,从来源“https://example.github.io”访问“https://unpkge.com/log”已被 CORS 策略阻止

我正在从 unpkg.com CDN 导入包。我已经在我的 html 代码中包含了这样的脚本 ...

回答 0 投票 0

我想在 laravel 9 中更改我的存储路径

我所有上传的文件都保存在Project/Storage/App 但是我想保存在cdn.myproject.com/files/ 我该怎么做请指导我 谢谢

回答 2 投票 0

Google 素材图标 CDN 在 NEXTJS 中不起作用

我将谷歌图标 CDN 添加到我的 _document.js 文件 nextJs 项目中,但谷歌图标仍然无法在我的项目中工作。 ```从“next/document”导入 { Html, Head, Main, NextScript };

回答 1 投票 0

是否必须在每次 CORS 请求之前进行飞行前请求?

今天,当我在 JioCinemas 上观看 IPL 比赛时,我打开了网络选项卡,只是为了查看它发出的所有请求、响应时间、cdn 提供商等 我注意到 JioCinemas 正在制作 Prefli...

回答 0 投票 0

如何在导入 cdns 时停止出错?

这是我的代码。为什么会出现这些错误?试了上千种方法,还是一事无成。 <question vote="0"> <p>这是我的代码。为什么会出现这些错误?已经尝试了一千种方法,却一事无成。</p> <pre><code> &lt;script src=&#34;https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js&#34;&gt;&lt;/script&gt; &lt;script src=&#34;https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/Observer.min.js&#34;&gt;&lt;/script&gt; &lt;script src=&#34;https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/ScrollTrigger.min.js&#34;&gt;&lt;/script&gt; &lt;script src= &#34;https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/ScrollToPlugin.min.js&#34;&gt;&lt;/script&gt; &lt;script async src=&#34;https://unpkg.com/[email protected]/dist/es-module-shims.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;importmap&#34;&gt; { &#34;imports&#34;: { &#34;three&#34;: &#34;https://unpkg.com/three@&lt;version&gt;/build/three.module.js&#34;, &#34;three/addons/&#34;: &#34;https://unpkg.com/three@&lt;version&gt;/examples/jsm/&#34;, &#34;gsap&#34;: &#34;https://unpkg.com/browse/gsap@&lt;version&gt;/src/gsap-core.js&#34;, &#34;gsap/&#34;: &#34;https://unpkg.com/browse/gsap@&lt;version&gt;/src/&#34;, } } &lt;/script&gt; &lt;script type=&#34;module&#34; src=&#34;/main.js&#34;&gt;&lt;/script&gt; </code></pre> <pre><code>import * as THREE from &#34;three&#34;; import { GLTFLoader } from &#34;three/addons/loaders/GLTFLoader.js&#34;; import { EffectComposer } from &#34;three/addons/postprocessing/EffectComposer.js&#34;; import { RenderPass } from &#34;three/addons/postprocessing/RenderPass.js&#34;; import { gsap } from &#34;gsap&#34;; import { Observer } from &#34;gsap/Observer&#34;; import { ScrollTrigger } from &#34;gsap/ScrollTrigger&#34;; import { ScrollToPlugin } from &#34;gsap/ScrollToPlugin&#34; import state from &#34;https://gramophone-frezy.s3.eu-central-1.amazonaws.com/bestR.json&#34;; import * as core from &#39;@theatre/core.js&#39; </code></pre> <p>GET <a href="https://unpkg.com/three@%3Cversion%3E/examples/jsm/loaders/GLTFLoader.js" rel="nofollow noreferrer">https://unpkg.com/three@%3Cversion%3E/examples/jsm/loaders/GLTFLoader.js</a> net::ERR_ABORTED 404 main.js:3 GET <a href="https://unpkg.com/three@%3Cversion%3E/build/three.module.js" rel="nofollow noreferrer">https://unpkg.com/three@%3Cversion%3E/build/three.module.js</a> net::ERR_ABORTED 404 main.js:10 GET <a href="https://unpkg.com/browse/gsap@%3Cversion%3E/src/ScrollToPlugin" rel="nofollow noreferrer">https://unpkg.com/browse/gsap@%3Cversion%3E/src/ScrollToPlugin</a> net::ERR_ABORTED 404 main.js:6 GET <a href="https://unpkg.com/three@%3Cversion%3E/examples/jsm/postprocessing/RenderPass.js" rel="nofollow noreferrer">https://unpkg.com/three@%3Cversion%3E/examples/jsm/postprocessing/RenderPass.js</a> net::ERR_ABORTED 404 main.js:7 GET <a href="https://unpkg.com/browse/gsap@%3Cversion%3E/src/gsap-core.js" rel="nofollow noreferrer">https://unpkg.com/browse/gsap@%3Cversion%3E/src/gsap-core.js</a> net::ERR_ABORTED 404 main.js:5 GET <a href="https://unpkg.com/three@%3Cversion%3E/examples/jsm/postprocessing/EffectComposer.js" rel="nofollow noreferrer">https://unpkg.com/three@%3Cversion%3E/examples/jsm/postprocessing/EffectComposer.js</a> net::ERR_ABORTED 404 main.js:12 GET <a href="https://unpkg.com/browse/theatre@%3Cversion%3E/core.js" rel="nofollow noreferrer">https://unpkg.com/browse/theatre@%3Cversion%3E/core.js</a> net::ERR_ABORTED 404 main.js:9 GET <a href="https://unpkg.com/browse/gsap@%3Cversion%3E/src/ScrollTrigger" rel="nofollow noreferrer">https://unpkg.com/browse/gsap@%3Cversion%3E/src/ScrollTrigger</a> net::ERR_ABORTED 404 main.js:8 GET <a href="https://unpkg.com/browse/gsap@%3Cversion%3E/src/Observer" rel="nofollow noreferrer">https://unpkg.com/browse/gsap@%3Cversion%3E/src/Observer</a> net::ERR_ABORTED 404</p> <p>我也有这些错误</p> <p>sound.png:1 加载模块脚本失败:需要一个 JavaScript 模块脚本,但服务器响应 MIME 类型为“image/png”。根据 HTML 规范对模块脚本执行严格的 MIME 类型检查。 sound2.png:1 加载模块脚本失败:需要一个 JavaScript 模块脚本,但服务器以“image/png”的 MIME 类型响应。根据 HTML 规范对模块脚本执行严格的 MIME 类型检查。 bestR.json:1 无法加载模块脚本:需要一个 JavaScript 模块脚本,但服务器响应的 MIME 类型为“application/json”。根据 HTML 规范对模块脚本执行严格的 MIME 类型检查。</p> <p>当我将它们导入为</p> <pre><code>import soundImg from &#39;https://gramophone-frezy.s3.eu-central-1.amazonaws.com/sound.png&#39;; import soundImg2 from &#39;https://gramophone-frezy.s3.eu-central-1.amazonaws.com/sound2.png&#39;; </code></pre> <p>和</p> <pre><code>import soundImg from &#39;./images/sound.png&#39;; import soundImg2 from &#39;./images/sound2.png&#39;; import state from &#34;./scene/bestR.json&#34;; </code></pre> <p>非常感谢您的帮助,因为我完全没有想法。 为了添加一些上下文,我正在尝试将网站从 Vite 项目上传到 Hostinger。本地托管在没有 cdns 的情况下工作,但在托管商上没有,所以我尝试使用 cdns 并做到了这一点。</p> </question> <answer tick="false" vote="0"> <p>您的 <a href="https://unpkg.com/" rel="nofollow noreferrer">unpkg</a> URL 包含文本“@<version>”——可能是因为您只是从某处复制了模式。但是,“<version>”意味着要用实际版本号(例如 <pre><code>1.2.3</code></pre> 或类似的)代替。</p> <p>在很多情况下,您也可以简单地省略“@<version>”,然后自动检索最新版本的包。</p> </answer> </body></html>

回答 0 投票 0

Azure 静态网站在某些情况下无法加载

我已经设置了一个带有 CDN 的 Azure 静态网站,CDN 端点是 https://cvwebsite.azureedge.net 并且我在 CloudFlare www 中创建了两个指向 https://cvwebsite.azuree 的 CNAME 记录。 .

回答 0 投票 0

jsDelivr 没有更新

我知道堆栈溢出中存在同样的问题。但是他们没有得到正确的回答。 我从 Github 上传了一个 js 到 jsDelivr。 Github 中的一个已更新,但 jsDelivr 未更新。 例子: Github 如果...

回答 1 投票 0

How to resolve Cloudfront CORS Error coming only from loader?

我正在尝试通过加载程序脚本加载 CDN javascript 文件,但出现以下错误。 从来源“https://local.foo.com:300...

回答 0 投票 0

Cloudflare S3 基于前缀/文件夹的访问,例如 AWS CloudFront

AWS CloudFront 支持 S3 和 CDN 分发的自定义来源 在这里我们可以提供源路径作为文件夹名称和源类型作为 S3 或任何自定义源 我只想允许特定文件夹访问...

回答 0 投票 0

react.development.js 和react.production.js 文件通过CDN 的区别

通过 CDN 的 react.development.js 和 react.production.js 文件有什么区别? 有人可以详细解释一下吗? 我不明白“通过 CDN”这个词是什么意思......

回答 1 投票 0

DNS:现有记录与尝试的 CNAME 记录冲突

我在 Vercel 上托管了我的一个应用程序。 Vercel 也是我可以编辑我的 DNS 记录的地方。 现在我不想将我的图像托管在我网站上的文件夹中。因此,我用亚马逊创建了一个 CDN。为了配合...

回答 0 投票 0

cdn执行成功后如何调用cdn提供的全局方法?

我正在尝试在我的 React 项目中使用 cdn 链接。 它为全局对象提供了如下函数: 无线...</desc> <question vote="0"> <p>我正在尝试在我的 React 项目中使用 cdn 链接。</p> <pre><code>&lt;script type=&#34;text/javascript&#34; src=&#34;cdn_link&#34; /&gt; </code></pre> <p>它提供了一个具有如下功能的全局对象:</p> <pre><code>window.module = { identify: (val) =&gt; Identify(val) }; </code></pre> <p>我想在<pre><code>window.module.identify(...args)</code></pre><pre>中调用这个</pre><code>componentDidMount</code></p> <p>但是由于 cdn 是异步的,我无法在触发 <pre><code>componentDidMount</code></pre> 之前等待它成功执行。</p> <p>结果它抛出一个错误</p> <pre><code>Uncaught TypeError: window.module.identify is not a function. </code></pre> <p>我已经尝试了一些解决方案:</p> <ol> <li>async=false 和 defer=false.</li> <li>在 onload 上调用方法/回调。 <pre><code>(window.addEventListener(&#39;load&#39;, () =&gt; window.module.identify(...args)))</code></pre></li> </ol> <p>但是这些方法无法阻止我试图在<pre><code>window.module.identify(...args)</code></pre>上调用的<pre><code>componentDidMount</code></pre>,直到cdn链接返回所需的js代码。</p> </question> </body></html>

回答 0 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.