Google Drive CSS / JS返回404错误 [英] Google Drive CSS/JS Returns 404 Error

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

问题描述

我在Google云端硬盘上托管了我的CSS / JS。

但是它突然停止工作(在Chrome,Safari,Mac,iPhone上测试过)。

检查 Chrome浏览器,我看到链接到谷歌驱动返回404



Google云端硬盘虚拟主机是所有其他人拥有的吗?

现在不推荐使用。

既适用于CSS JS,也适用于您使用的链接格式(主机,ID,视图等)。



您在Google云端硬盘上拥有的与网站链接的任何CSS或JS将不再有效(即使它已经全部设置好了并且正在运行 - 在这种弃用方式出现之前)。

例如(我反复测试了这个),CSS将不会加载,并且在检查您的站点时,您会看到Drive链接您的东西应该已打开,返回404



用Google自己的话说:


开始 2015年8月31日,用户和开发人员在Google云端硬盘中的网页托管服务将不推荐使用

您可以继续使用此功能一年,直至 8月我们将通过googledrive.com/host/[doc id]停止提供内容。


来源: gsuite-developers.googleblog.com

建议的链接(来自上述页面): https://cloud.google。 com / storage /

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.

Anyone else had that?

解决方案

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.).

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.

In Google's own words:

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].

Source: gsuite-developers.googleblog.com
Suggested link (from above page): https://cloud.google.com/storage/

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆