How to intercept a WKWebView request to detect which local resource files (css, js, png, …) load together with a HTML file?
问题 I have a HTML file which contains local resource files such as css, js and png files inside its content. These local resource files are in zip format. My app use WKWebView to display this html file. I want to find a solution to intercept the web view request to detect which local resource files are load together with this html file -> then unzip them if they are still zip format. My HTML data content contains thousands of these local resource file so I can't unzip all of them before display