問題描述
我將我的 CSS/JS 托管在 Google 云端硬盤上.
但它突然停止工作(在 Chrome、Safari、Mac、iPhone 上測(cè)試過......).
在使用 Chrome
進(jìn)行檢查后,我發(fā)現(xiàn) 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 現(xiàn)已棄用.
這適用于 CSS 和 JS,無論您使用什么鏈接格式(主機(jī)、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 云端硬盤上鏈接到網(wǎng)站的任何 CSS 或 JS 都將不再有效(即使在此棄用發(fā)生之前已全部設(shè)置并正常工作).
例如(我自己反復(fù)測(cè)試過),CSS 不會(huì)加載,并且在檢查您的網(wǎng)站時(shí),您會(huì)看到您的東西應(yīng)該在 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 日開始,用戶和開發(fā)者在 Google 云端硬盤中的網(wǎng)絡(luò)托管將被棄用.
您可以在一年內(nèi)繼續(xù)使用此功能,直到 2016 年 8 月 31 日,屆時(shí)我們將停止通過 googledrive.com/host/[doc id] 提供內(nèi)容.
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/
這篇關(guān)于Google Drive CSS/JS 返回 404 錯(cuò)誤的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!