Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我指定一个应用程序缓存清单,上面写着“缓存 foo.js”并使用相同的清单,http://example.com/foo.html然后http://example.com/bar.html将foo.js被缓存两次,或者它是否足够聪明,可以将其识别为相同的资源?
http://example.com/foo.html
http://example.com/bar.html
foo.js
它会识别已经缓存的文件。所以在你的例子中,它只会被缓存一次。