Google Drive CSS/JS 返回 404 错误

Google Drive CSS/JS Returns 404 Error(Google Drive CSS/JS 返回 404 错误)

本文介绍了Google Drive CSS/JS 返回 404 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的 CSS/JS 托管在 Google 云端硬盘上.
但它突然停止工作(在 Chrome、Safari、Mac、iPhone 上测试过......).
在使用 Chrome 进行检查后,我发现 Google 云端硬盘的链接 返回了 404.

I hosted my CSS/JS on Google Drive.
But it suddenly stopped working (tested on Chrome, Safari, Mac, iPhone..).
Upon inspecting with Chrome, I saw that the link to Google Drive returned a 404.

其他人有吗?

推荐答案

Google Drive Web Hosting 现已弃用.
这适用于 CSS JS,无论您使用什么链接格式(主机、ID、视图等).

Google Drive Web Hosting is now deprecated.
That goes for both CSS and JS, and no matter what link format you use (host, id, view, etc.).

您在 Google 云端硬盘上链接到网站的任何 CSS 或 JS 都将不再有效(即使在此弃用发生之前已全部设置并正常工作).
例如(我自己反复测试过),CSS 不会加载,并且在检查您的网站时,您会看到您的东西应该在 Drive 链接上,返回 404.

Any CSS or JS you have on Google Drive, linked to a website, will no longer work (even if it was all setup - and working - before this deprecation came about).
For example (I tested this myself repeatedly), CSS won't load, and upon inspecting your site, you'll see that the Drive link your stuff is supposed to be on, returns a 404.

用谷歌自己的话来说:

2015 年 8 月 31 日开始,用户和开发者在 Google 云端硬盘中的网络托管将被弃用.
您可以在一年内继续使用此功能,直到 2016 年 8 月 31 日,届时我们将停止通过 googledrive.com/host/[doc id] 提供内容.

Beginning August 31st, 2015, web hosting in Google Drive for users and developers will be deprecated.
You can continue to use this feature for a period of one year until August 31st, 2016, when we will discontinue serving content via googledrive.com/host/[doc id].

来源:gsuite-developers.googleblog.com
建议的链接(来自上面的页面):https://cloud.google.com/storage/

这篇关于Google Drive CSS/JS 返回 404 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Google Drive CSS/JS 返回 404 错误

基础教程推荐