内容传递网络或内容分发网络(CDN)是包含放置在网络的各个节点处的数据的副本的计算机系统。
如何在 Visual Studio Code 中的 HTML 文件中获取链接的 Javascript 文件的智能感知?
我有一个 javascript 文件,它与 HTML 文件存储在同一文件夹中。我想从 HTML 文件中的脚本标记内调用 javascript 文件中的函数。不知怎的,我不明白
我最近在 AWS CDN 上配置了我的 Laravel 网站,但遇到了一些问题。我是新来的,请帮忙.. 我的 Laravel 网站使用以下 cookie 来识别会话。
我有多个图表要显示在这个刀片文件上,但似乎只有一个图表可以显示..我需要显示 4..我检查了开发者控制台,没有错误
如何找到非缩小版 bootstrap 5 的 SRI 代码?
Bootstrap 5.3.0-alpha3 托管在 JsDelivr 网络上。我可以在这个链接上看到 https://www.jsdelivr.com/package/npm/bootstrap?tab=stats 我可以右键单击复制图标并复制 SRI 代码...
如何配置 Webpack 从运行时确定的 CDN 主机加载 index.html 以外的资源?
我们有一个应用程序,其中 index.html 由 NGINX 提供,但我们希望所有其他资产都从 CDN 加载。我们的 CI 管道将我们的应用程序部署到暂存环境,然后部署到
Dayjs CDN 的 Chartjs 适配器:未捕获的 ReferenceError:未定义进程
我将 CDN 用于 Chartjs 的适配器以利用 Dayjs (chartjs-adapter-dayjs-4),我收到错误 Uncaught ReferenceError: process is not defined 我需要能够使用 CDN l...
如何在 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 放在一起,或者我们可以说彼此平行,但它没有改变
我正在尝试使用 Google Media CDN,我开始使用示例: https://codelabs.developers.google.com/mediacdn-ls-codelab#10 我创建了一个具有公共访问权限的谷歌存储桶,之后: gcloud 边缘...
如果我的页面在 GitHub 页面上,我可以放弃 CDN 吗?
我们的组织有一个托管在 GitHub 上的网页,HTML 有几个 CDN 链接(jQuery、Bootstrap、Fontawesome 等...)。然而,有人告诉我 GitHub 已经是一个 CDN,所以我们可以删除所有...
有什么方法可以了解更多关于“未指定”CloudFront 引荐来源网址的信息吗?他们是坏兆头吗?
查看 CloudFront 日志时,未指定我的照片服务 CDN 最常见的引荐来源网址。我试图更多地了解为什么会这样,以及请求可能来自哪里……
为 Flask 站点提供来自 Cloudfront 的图像 [重复]
我有一个包含大量图像的 Flask 站点,因此我想使用 CDN 从不同的地方为它们提供服务。 我想采用最简单的解决方案并避免使用 Flask CDN
Cloudflare 的 RackBeat Webhook 问题
当我们更新 Rackbeat 中的库存时,它的 webhook 会触发,并且该 webhook 使用 WooCommerce REST API 将更新的库存发布/修补到关联/集成的网站中。 我们正在使用 woocomm...
lit 元素 CDN 汇总包文件:从外部 jsp 文件访问 cdn 包文件中包含的功能
我使用 rollup.config.js 创建了一个简单的 lit 元素包文件。此捆绑文件上传到 Netstorage 中。这就是我的 lit 元素的样子: 从 "lit/
在托管网站时,从来源“https://example.github.io”访问“https://unpkge.com/log”已被 CORS 策略阻止
我正在从 unpkg.com CDN 导入包。我已经在我的 html 代码中包含了这样的脚本 ...
我所有上传的文件都保存在Project/Storage/App 但是我想保存在cdn.myproject.com/files/ 我该怎么做请指导我 谢谢
Google 素材图标 CDN 在 NEXTJS 中不起作用
我将谷歌图标 CDN 添加到我的 _document.js 文件 nextJs 项目中,但谷歌图标仍然无法在我的项目中工作。 ```从“next/document”导入 { Html, Head, Main, NextScript };
今天,当我在 JioCinemas 上观看 IPL 比赛时,我打开了网络选项卡,只是为了查看它发出的所有请求、响应时间、cdn 提供商等 我注意到 JioCinemas 正在制作 Prefli...
这是我的代码。为什么会出现这些错误?试了上千种方法,还是一事无成。 <question vote="0"> <p>这是我的代码。为什么会出现这些错误?已经尝试了一千种方法,却一事无成。</p> <pre><code> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/gsap.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/Observer.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/ScrollTrigger.min.js"></script> <script src= "https://cdnjs.cloudflare.com/ajax/libs/gsap/3.11.4/ScrollToPlugin.min.js"></script> <script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script> <script type="importmap"> { "imports": { "three": "https://unpkg.com/three@<version>/build/three.module.js", "three/addons/": "https://unpkg.com/three@<version>/examples/jsm/", "gsap": "https://unpkg.com/browse/gsap@<version>/src/gsap-core.js", "gsap/": "https://unpkg.com/browse/gsap@<version>/src/", } } </script> <script type="module" src="/main.js"></script> </code></pre> <pre><code>import * as THREE from "three"; import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js"; import { EffectComposer } from "three/addons/postprocessing/EffectComposer.js"; import { RenderPass } from "three/addons/postprocessing/RenderPass.js"; import { gsap } from "gsap"; import { Observer } from "gsap/Observer"; import { ScrollTrigger } from "gsap/ScrollTrigger"; import { ScrollToPlugin } from "gsap/ScrollToPlugin" import state from "https://gramophone-frezy.s3.eu-central-1.amazonaws.com/bestR.json"; import * as core from '@theatre/core.js' </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 'https://gramophone-frezy.s3.eu-central-1.amazonaws.com/sound.png'; import soundImg2 from 'https://gramophone-frezy.s3.eu-central-1.amazonaws.com/sound2.png'; </code></pre> <p>和</p> <pre><code>import soundImg from './images/sound.png'; import soundImg2 from './images/sound2.png'; import state from "./scene/bestR.json"; </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>
我已经设置了一个带有 CDN 的 Azure 静态网站,CDN 端点是 https://cvwebsite.azureedge.net 并且我在 CloudFlare www 中创建了两个指向 https://cvwebsite.azuree 的 CNAME 记录。 .
我知道堆栈溢出中存在同样的问题。但是他们没有得到正确的回答。 我从 Github 上传了一个 js 到 jsDelivr。 Github 中的一个已更新,但 jsDelivr 未更新。 例子: Github 如果...