We display files to user from a remote source. Sometimes we have very large files that cab be few GBs in size. The problem comes when users opens same large file frequently. Whenever the user opens a file front-end has to request file from remote source and it takes quite sometime for the file to download and open for the user. My question is “is there a solution where we can utilize File-System of user’s machine to cache those large files” so that front-end does not have to request and fetch the file from remote source on each request?
Tech stack:
- Angular 16 front-end
- DotNet
Solutions I have checked:
- Session and localStorage. Very limited size
- IndexDb. It can save file but after storing 2-3 GB content browser starts to slow down so does the system itself as the size of indexDb increase.
- Can not use server side cache as the time for the front to fetch the file will remain the same.
Hassan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.