Skip to content

Content type

Filter requests by content type to analyze bandwidth consumption across your project. Identify the highest bandwidth content types, such as image assets, so you can optimize them to improve performance and reduce resource costs.

Observability shows you the content type of your project’s web requests. Content-Type is a standard HTTP response header that indicates the media type of the returned content.

Your request may have no content type when one or more of the following is true:

  • when the response body is empty and you get a response with a 204 No Content status code
  • redirects, which have a 3XX status code
  • internal server errors
  • injected scripts

We recommend monitoring for the most common content types to understand how your project’s production performance and resource usage.

Content-TypeUsed forDescription
application/javascriptJavaScript filesOften the largest bandwidth consumer. Monitor for large bundles.
text/htmlHTML web pagesCore site content
application/jsonJSON data filesCan indicate excessive data loading or prefetching for specific frameworks, such as Next.js data or Gatsby page-data.json. High volume warrants investigation.
text/cssCSS stylesheetsStyling files
text/plainPlain text filesVarious text content
image/webpWebP imagesModern image format
image/pngPNG imagesIf larger than a few hundred KB, consider using Image CDN
image/jpegJPEG imagesIf larger than a few hundred KB, consider using Image CDN
image/svg+xmlSVG vector graphicsScalable graphics
font/woff2Web fontsCan be heavy in terms of bandwidth
application/octet-streamBinary filesAssorted files (e.g., JavaScript source maps, various binary content)
image/vnd.microsoft.iconFavicon filesTypically .ico files
video/mp4MP4 video filesHigh bandwidth usage
application/pdfPDF documentsDocument files
Content-TypeFrameworkDescription
text/x-componentNext.js 13+Pre-fetching components to load content before content is requested to improve performance. Built-in for frameworks such as Next.js, Remix, Gatsby, SvelteKit, etc. Astro can use pre-fetching if configured.
application/vnd.ms-accessGatsbyGatsby data files (e.g., /j94r24d0-a3fb-4bb0-8d9b-34c35d2fbc2d-data.mdb) for Gatsby sites using SSR that read from the Gatsby data layer during server-side rendering.

For a comprehensive list of content-type values, check out the IANA Media Types reference docs.

To learn more in general about content type, check out the MDN Web Docs for Content-Type.