lookup> application/javascript

application/javascript

application/javascript is a application media type commonly associated with .js extensions.

applicationUTF-8CompressibleContent-Type
MIME typeapplication/javascript
Extensions.js
CharsetUTF-8
CompressibleYes
Sourceapache

application/javascript

application/javascript is one of the application media types used on the internet, with charset UTF-8, and it is safe to compress for transport. When serving this content over HTTP, set the Content-Type header in the response, for example:

Content-Type: application/javascript; charset=utf-8

Related entities: associated extensions include .js, and is delivered over HTTP via the Content-Type header, commonly with GET, POST, PUT and PATCH requests.

Related formats:

JavaScript File
.jsserved as
mime type
application/javascriptsent via header
http header

application/javascript is identified in HTTP by the Content-Type header and is commonly used with these methods:

What is application/javascript?

application/javascript is a application media type used to identify a content format; servers announce it to clients with the Content-Type header.

Which file extensions use application/javascript?

Extensions such as .js are associated with this MIME type.

How do I set the Content-Type for application/javascript?

Send Content-Type: application/javascript; charset=utf-8 in the HTTP response.

Related extensions

Related MIME types

Related headers

Related methods