content type for javascript documents = application/javascript

Namespace:  HttpServer
Assembly:  HttpServer (in HttpServer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public const string Javascript
Visual Basic (Declaration)
Public Const Javascript As String
Visual C++
public:
literal String^ Javascript

Remarks

RFC 4329 states that text/javascript have been superseeded by application/javascript. You might still want to check browser versions since older ones do not support application/javascript.

Browser support: http://krijnhoetmer.nl/stuff/javascript/mime-types/

See Also