HTTP Header Design Patterns

 

ATTENTION: THIS PAGE IS Valid HTML 5 AND IS BEST VIEWED WITH HTML 5 - Please upgrade your browser or download one of the HTML 5 compatible browsers such as Mozilla Firefox, Chrome, Opera or IE 9 (March 14, 2011 or later). For more information see HTML 5 browsers.


If you find this helpful, please click the Google +1 Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.)


PDF mobile

HTTP Headers

HTTP headers are sent to the client (browser) in the response from the web server before the document itself. The HTTP headers which control how an HTML document is displayed might look like this:

Content-Type: application/xhtml+xml; charset=UTF-8
Cache-Control: max-age=120
X-UA-Compatible: IE=9

When a program or server-side scripting is generating HTML, the language probably has an API to send the proper HTTP headers.

How To Set HTTP Headers
Content-Type Header for HTML
How to set the Content-Type header and other HTTP headers for HTML 5 and later versions of HTML
.htaccess Regular Expressions
HTTP URL Redirect
URL redirection or URL forwarding allows a request for one URL to be redirected to a different one, frequently used when a web page has moved, for example.

Valid HTML 5