Edge Browser: Failed to load resource: net::ERR_CACHE_READ_FAILURE

SendilKG 6 Reputation points
2021-09-20T14:24:02.52+00:00

Getting this error, Failed to load resource: net::ERR_CACHE_READ_FAILURE in Edge browser after deleting the cache and cookie files programmatically from below locations..

please let me know the best way to delete the Edge cache/cookie files programmatically. thanks..

<add key="EdgeCacheLocations" value="C:\Users\USERID\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3d8bbwe\AC\,
C:\Users\USERID\AppData\Local\Microsoft\Edge\User Data\Default\Cache\,
C:\Users\USERID\AppData\Local\Microsoft\Edge\User Data\Default\IndexedDB,
C:\Users\USERID\AppData\Local\Microsoft\Edge\User Data\Default\Service Worker,
C:\Users\USERID\AppData\Local\Microsoft\Edge\User Data\Default\Code Cache" />

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,078 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Yu Zhou-MSFT 11,721 Reputation points Microsoft Vendor
    2021-09-21T05:57:52.103+00:00

    Hi @SendilKG

    Do you want to delete cache and cookie files of Edge Chromium browser? If so, the locations in your code are wrong. These are locations for Edge Legacy browser.

    The locations for cache and cookie files of Edge Chromium are below:
    directory: C:\Users%username%\AppData\Local\Microsoft\Edge\User Data\Default\Cache
    file: C:\Users%username%\AppData\Local\Microsoft\Edge\User Data\Default\Cookies

    You can first kill all Edge processes, then delete the cache and cookie files. For the PowerShell script, you can refer to the code sample below:

    taskkill /F /IM "msedge.exe"  
    Remove-Item -path "C:\Users\$env:UserName\AppData\Local\Microsoft\Edge\User Data\Default\Cache\*" -Recurse -Force -Verbose  
    Remove-Item -path "C:\Users\$env:UserName\AppData\Local\Microsoft\Edge\User Data\Default\Cookies" -Recurse -Force -Verbose  
    

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou