Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Content Types

Routes that serve package files, such as GET /file/{hash}/{*path}, and the package artwork, thumbnail, and media item routes, use a content type determined by the file’s extension.

The Content-Security-Policy: sandbox header is included with responses where doing so does not break built-in browser preview pages.

Binary and unrecognized file extensions are served sandboxed with Content-Type: application/octet-stream and Content-Disposition: attachment.

Files under /mount/ are served with a content type guessed from their extension, not using the following table, and are not sandboxed.

extensionscontent typesandboxed
flacaudio/flacfalse
jpeg, jpgimage/jpegtrue
m4aaudio/mp4false
mp3audio/mpegfalse
mp4video/mp4false
pngimage/pngtrue
css, csv, html, js, json, md, svg, toml, tsv, txt, xml, yamltext/plain;charset=utf-8true
webmvideo/webmfalse