问题是服务器发送了错误的 MIME 类型来与 .oga 文件一起使用。要解决此问题,您只需在主目录中创建一个正确关联 MIME 类型的 .htaccess 文件。
这是一个更新很多的示例,OGG 的重要内容在底部。
# CSS
AddType text/css .css
# XHTML
AddType application/xhtml+xml .xhtml
# XML
AddType text/xml .xml
# XUL
AddType application/vnd.mozilla.xul+xml .xul
# Add-ons
AddType application/x-xpinstall .xpi
# SVG
AddType image/svg+xml .svg .svgz
AddEncoding x-gzip .svgz
# HTML
# Server Side Includes (SSI)
AddType text/html .shtml
# Active Server Pages
AddType text/html .asp
# Favicons
AddType image/vnd.microsoft.icon .ico
# Macromedia
AddType application/x-shockwave-flash .swf
AddType application/x-director .dir .dcr .dxr .fgd
AddType application/x-authorware-map .aam
AddType application/x-authorware-seg .aas
AddType application/x-authorware-bin .aab
AddType image/x-freehand .fh4 .fh5 .fh7 .fhc .fh
# Adobe PDF
AddType application/pdf .pdf
# Real
AddType application/vnd.rn-realmedia .rm
AddType audio/vnd.rn-realaudio .ra .ram
AddType video/vnd.rn-realvideo .rv
AddType audio/x-pn-realaudio-plugin .rpm
# Microsoft multimedia
AddType video/x-ms-asf .asf .asx
AddType audio/x-ms-wma .wma
AddType audio/x-ms-wax .wax
AddType video/x-ms-wmv .wmv
AddType video/x-ms-wvx .wvx
AddType video/x-ms-wm .wm
AddType video/x-ms-wmx .wmx
AddType application/x-ms-wmz .wmz
AddType application/x-ms-wmd .wmd
# MPEG
AddType audio/x-mpegurl .m3u
# Binary Compressed files and archives
AddType application/zip .zip
AddType application/x-gzip .gz
AddType application/x-gtar .gtar
AddType application/x-rar-compressed .rar
AddType application/octet-stream .dmg
# Java
AddType application/x-java-applet .class
# Quicktime movies
AddType video/quicktime .mov .qt
# XBM files
AddType image/x-xbitmap .xbm
# WAV files
AddType audio/x-wav .wav
# Bittorrent
AddType application/x-bittorrent .torrent
#OGG
AddType audio/ogg .oga
AddType video/ogg .ogv
AddType application/ogg .ogg