Can I use html5 cache manifest to store third party js?

邮差的信 提交于 2019-12-04 10:30:05

According to html5doctors, you can set external urls in the cache manifest. Here is an example:

CACHE MANIFEST

# This is the cache part where you specify files to cache
CACHE
/some/file.js
/some/other/file.css

http://some.external.url/file.js

I suggest you read the link to html5doctors if you want more information (cache, fallback, etc).

For anyone else experiencing problems, I had an issue with trying load scripts from https. Converting them to http did the trick.

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