application/sql

SQL files package schema changes, seed data, and reproducible queries for database review and deployment workflows.

application
Usually already encoded

Content-Type header

Content-Type: application/sql
Common extensions

How teams usually encounter it

This page maps the media type to the file extensions and delivery behaviors developers usually care about: browser parsing, upload validation, cache correctness, and asset handling.

Compression signal

application/sql is usually already compressed or stored in a binary-heavy format, so extra transfer compression tends to help less.

Server config snippets

Use these when a server is missing the right extension-to-MIME mapping or you want the expected header to survive a proxy, CDN, or custom asset bucket setup.

Nginx
types {
  application/sql sql;
}
Apache
AddType application/sql .sql

Signature note

This MIME type does not include a magic-byte sample here because the signature is either format-dependent or not reliable enough to present as a debugging shortcut.

Operational shortcut

If a browser downloads this asset instead of rendering it correctly, check the response header first, then verify the extension mapping on your origin and edge cache. .sql is the fastest sanity check for teammates reviewing the file outside the app.

Related application types