Category: Font

font/woff2

font/woff2 is the recommended W3C font format for the web, utilizing Brotli compression to achieve ~30% smaller file sizes than WOFF 1.0.

MIME / CONTENT-TYPE

font/woff2

ASSOCIATED EXTENSIONS

.woff2

PRIMARY CATEGORY

Font

HTTP Headers & Web Server Configurations

Standard HTTP Response Header
Content-Type: font/woff2

Send this exact header in HTTP responses to instruct browsers how to decode and render the payload.

Node.js / Express / Web API
@font-face { font-family: "CustomSans"; src: url("/fonts/sans.woff2") format("woff2"); font-display: swap; }
NGINX Configuration (mime.types)
types { font/woff2 woff2; }
Apache (.htaccess / httpd.conf)
AddType font/woff2 .woff2

Security Advisory & Hardening

Ensure CORS headers (`Access-Control-Allow-Origin: *`) are present if web fonts are loaded across subdomains or CDNs.

Frequently Asked Questions

font/woff2 Questions & Answers

Common questions regarding MIME types, Content-Type headers, and web server configurations.

The standard HTTP response header is: "Content-Type: font/woff2".