Google Drive CSS/JS Returns 404 Error

我是研究僧i 提交于 2019-12-17 05:14:22

问题


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?


回答1:


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/



来源:https://stackoverflow.com/questions/40478447/google-drive-css-js-returns-404-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!