Files with .bin extension are usually served as application/octet-stream by most out-of-the-box web server and operating system configurations. This is useful for marking data as really binary data.
Example in golang:
https://cs.opensource.google/go/go/+/refs/tags/go1.26.4:src/mime/type.go;l=69
Currently, .bin files are served from pgs.sh as:
content-encoding: zstd
content-type: text/plain
I'm guessing it's from the GetMimeType function. It would be nice to add a case for .bin files:
func GetMimeType(fpath string) string {
ext := strings.ToLower(filepath.Ext(fpath))
switch ext {
case ".bin":
return "application/octet-stream"
case ".svg":
return "image/svg+xml"
In fact, GetMimeType() currently has no extensions which map to application/octet-stream.
Files with
.binextension are usually served as application/octet-stream by most out-of-the-box web server and operating system configurations. This is useful for marking data as really binary data.Example in golang:
https://cs.opensource.google/go/go/+/refs/tags/go1.26.4:src/mime/type.go;l=69
Currently, .bin files are served from pgs.sh as:
I'm guessing it's from the GetMimeType function. It would be nice to add a case for .bin files:
In fact,
GetMimeType()currently has no extensions which map toapplication/octet-stream.