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.
我希望在特定日期删除缓存的页面。怎么可能指定那个日期?就我而言,我需要为每个页面动态设置日期。
你不能。一旦页面在客户端上,客户端就可以控制它们何时被删除。如果您在特定日期更新清单文件,删除相关文件,那么当浏览器下次连接到您的站点并替换应用程序缓存时,这些文件将不会被下载。
如果我们从manifest文件中删除文件名,如果用户下次上线,该文件是否会从缓存中删除?