我在 Google 云端硬盘上托管了我的 CSS/JS。
但它突然停止工作(在 Chrome、Safari、Mac、iPhone 上测试过......)。
使用 Chrome
检查后,我看到 Google 云端硬盘的链接 returned a 404 。
其他人也有过这样的经历吗?
最佳答案
Google 云端硬盘虚拟主机现已弃用。
这适用于 CSS 和 JS,无论您使用什么链接格式(主机、id、 View 等)。
您在 Google 云端硬盘上链接到网站的任何 CSS 或 JS 将不再起作用(即使在这次弃用之前它已全部设置完毕并正常工作)。
例如(我自己反复测试过),CSS 不会加载,在检查您的网站时,您会看到您的内容应该位于的 Drive 链接,returns a 404 。
用 Google 自己的话说:
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/
关于css - Google Drive CSS/JS 返回 404 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40478447/