我正在構建一個離線的Web應用程序,並且想要使用緩存清單。目前我的緩存清單如下:將外部文件包含在緩存清單中可以嗎?
CACHE MANIFEST
# Change the version number below each time we update a resource.
# Rev 1
index.html
photo.html
js/photo.js
css/photo.css
http://code.jquery.com/jquery-1.6.1.min.js
http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js
http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css
http://maps.google.com/maps/api/js?sensor=false&region=GB
沒有任何理由不到包括外部,CDN託管的jQuery,jQuery Mobile的和谷歌地圖的緩存清單文件?
我想不出一個,但我想我會問那些聰明比我:)
我不認爲答案是正確的。 請參見[SO上這個的其他問題] [1] [1]:http://stackoverflow.com/questions/10795268/can-i-use-html5-cache-manifest-to- store-third-party-js – user1632306
請重新檢查答案;我懷疑接受的答案是不正確的,並且引起了很多混淆。我已經提供了與來源不同的答案。 –
請重新檢查有效答案 – davidtaubmann