question

SendilKG-8079 avatar image
0 Votes"
SendilKG-8079 asked YuZhou-MSFT edited

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

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" />

ms-edge
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

YuZhou-MSFT avatar image
0 Votes"
YuZhou-MSFT answered YuZhou-MSFT edited

Hi @SendilKG-8079

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

· 5
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @SendilKG-8079

May I know if you have got any chance to check my answer? I am glad to help if you have any other questions.

0 Votes 0 ·

Sorry for my delayed response. I dont want to close/kill all the Open Edge instances.
Want to close the edge window by its name. is there a way to do it? thanks..

0 Votes 0 ·

Hi @SendilKG-8079

If you don't kill all Edge processes, you can't delete the cache and cookie files completely. It will fail to delete because some Edge processes are in use.

0 Votes 0 ·
Show more comments