java-cef
java-cef copied to clipboard
CefBrowser#reloadIgnoreCache() does not prevent caching
Original report by Marvin (Bitbucket: Marvin, GitHub: Marvin).
Invoking the reloadIgnoreCache() method on a CefBrowser instance does not cause all files to be reloaded from the server. This is revealed by the Network tab of the developer tools (CefBrowser#getDevTools()) which shows many files being restored from either the disk cache or the memory cache. If instead the “Disable cache” option is checked in the Network tab and the page is reloaded by pressing the F5 key, none of the requested files will be restored from cache.
Similarly, performing a CefRequest using the CefBrowser#loadRequest() method with the “Cache-Control: no-cache” header specified on that request does not circumvent caching either.
The issue is observable in JCEF version v1.0.10-87.1.12+g03f9336+chromium-87.0.4280.88 on Windows 10. It does not occur on all websites, but is reproducible on many popular ones such as microsoft.com, amazon.com, or twitter.com.