简体   繁体   中英

Does AWS S3 cache mp3 files to local?

When I click the mp3 file's AWS S3 path, it plays in my browser, see screenshot below: 在此处输入图像描述

Is the mp3 downloaded/cached to my local machine? If so where is it? I tried to search for it in Chrome cache folder but did not find anything. Very curious how this works exactly.

No, S3 doesn't cache any files locally. If a file were cached it's determined by your browser, who makes the decision based on a number of factors (such as HTTP headers, see [1]).

The reason the MP3 file plays in your browser is because your browser knows it can play the MP3 file and not just download it.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM