Always Specify a Content Type
For viewing all tips see here
Applicable To
All Browsers
How Improves Page Load Time
By optimizing browser rendering
Prologue
[Detail of the technology / concept being used in the tip if required]
Why
o Before browser can begin to check for a character set, they must first find the content type of the document being processed. If it is not specified, browser tries to identify using various algorithms, which adds an overhead of extra processing time
o To avoid any security vulnerability
How
o Configure web server to specify the content type in the HTTP headers
o If configuring of web server is not possible, then set the content type in the meta tag and specify the markup in the section of the HTML document
Exceptions
None
Recommendations
None
Comments
Post a Comment