문제

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