If I remove a file reference from the HTML5 cache manifest, will the browser (mobile Chrome) remove the cached file at some point? I'm concerned about cache size as the files in question are PDFs.

As far as I know, there is no way to programmatically remove a specific file from the cache.

有帮助吗?

解决方案

Yes, as soon as it detects that manifest file has been changed it will download a new version of the application cache. If you want to avoid the PDF files being downloaded again then you should ensure to set HTTP far future expiry headers to maximize the chance of them being re-loaded from the browser cache.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top