| Summary: | WKURLSchemeHandler does not fully implement the Http cache protocol | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | mali <ak4868> |
| Component: | WebKit2 | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WONTFIX | ||
| Severity: | Normal | CC: | achristensen, beidson, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
mali
2020-06-18 23:05:51 PDT
The whole point of WKURLSchemeHandler is that it is not HTTP. If you want HTTP-like caching, you will have to implement it yourself. It wouldn't save any Cross-process data transfers if we did because WebKit uses the network process for the HTTP disk cache. Sorry what I mean may not be in place. WKURLSchemeHandler is processed on the process of each WKWebView instance. When this process exits, the memory cache associated with it is destroyed. In other cases, WKWebView will create a Persistent network process for WKProcessPool, at this time these cache objects will not be destroyed as the WKWebView instance exits, is this more reasonable? |