'failed to load response data request content was evicted from inspector cache

i am trying to get file from server that has size of(15mb) through Axios Request. showing status "200", but not sending file previewData(base64) and showing this error "failed to load response data request content was evicted from inspector cache"enter image description here in the preview of Network in inspect. when i get 2 or 3 MB fille that successfully retrived.



Solution 1:[1]

The solution I found for capturing big responses is to copy the request and execute it by other means, such as PowerShell or cURL. From the Chrome or Firefox DevTools you can copy the request to a PowerShell, cURL or fetch command by right-clicking the request, selecting copy and then selecting your preferred execution method.

What worked best for me is copying the request as cURL command from Firefox. Chrome is giving me invalid cURL commands.

To capture the response to a file, append > response.txt to the cURL command.

It is also possible to select cURL as the copy method and import it into Postman. In Postman select File - Import - Raw text and copy the cURL command. When I tried this it did mess up the double quotes in the JSON body of a POST request so it may need some manual tweaking.

Solution 2:[2]

The data exists, it's just that it doesn't show it in the cache inspector because it exceeds the maximum number of characters, you can check by saving what the variable has in a .txt file

Solution 3:[3]

In my case, the issue resolved by closing the dev tools of Chrome and reopening it and then refreshing the page. This may not be the case for everyone, but resolved my issue and "failed to load response data request content was evicted from inspector cache" error gone.

Solution 4:[4]

In my case, create a .txt file and save the base64 in it, I checked that the data was sent and saved. Therefore the data was not displayed in the inspector because it exceeds the maximum size.

Solution 5:[5]

If you clean the Cache and Hard Reload I believe it will fix your problem.

for Hard Reload just open the Chrome Dev Tools. Once the chrome dev tools are open, just right-click on the refresh button and a menu will drop down. This menu gives you the option of doing a hard refresh.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 shtrip
Solution 2 Gabriel Nuñez
Solution 3 Iman Mahmoudinasab
Solution 4
Solution 5 Y F