Skip to content

Commit 3da500d

Browse files
committed
Update 404.html
* Link to a more official page for the information regarding Internet Explorer's "friendly HTTP error pages", namely: http://blogs.msdn.com/b/ieinternals/archive/2010/08/19/http-error-pages-in-internet-explorer.aspx. * Remove the indentation for the `<head>` and `<body>` tags in order to reduce the file size even closer to the 512 bytes limit. This is particularly helpful when compression is not enabled. * Stats: - before: original size: 1409 B gzipped size: 580 B ───────────────────────────── reduction: 829 B [58.8%] - after: original size: 1242 B gzipped size: 580 B ───────────────────────────── reduction: 662 B [53.3%] Ref: h5bp#1443.
1 parent 1c4df2a commit 3da500d

File tree

1 file changed

+48
-48
lines changed

1 file changed

+48
-48
lines changed

404.html

+48-48
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8">
5-
<title>Page Not Found</title>
6-
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<style>
8-
9-
* {
10-
margin: 0;
11-
line-height: 1.5;
12-
}
13-
14-
html {
15-
color: #888;
16-
font-family: sans-serif;
17-
text-align: center;
18-
}
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Page Not Found</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<style>
8+
9+
* {
10+
line-height: 1.5;
11+
margin: 0;
12+
}
13+
14+
html {
15+
color: #888;
16+
font-family: sans-serif;
17+
text-align: center;
18+
}
19+
20+
body {
21+
left: 50%;
22+
margin: -43px 0 0 -150px;
23+
position: absolute;
24+
top: 50%;
25+
width: 300px;
26+
}
27+
28+
h1 {
29+
color: #555;
30+
font-size: 2em;
31+
font-weight: 400;
32+
}
33+
34+
p {
35+
line-height: 1.2;
36+
}
37+
38+
@media only screen and (max-width: 270px) {
1939

2040
body {
21-
left: 50%;
22-
margin: -43px 0 0 -150px;
23-
position: absolute;
24-
top: 50%;
25-
width: 300px;
41+
margin: 10px auto;
42+
position: static;
43+
width: 95%;
2644
}
2745

2846
h1 {
29-
color: #555;
30-
font-size: 2em;
31-
font-weight: 400;
32-
}
33-
34-
p {
35-
line-height: 1.2;
47+
font-size: 1.5em;
3648
}
3749

38-
@media only screen and (max-width: 270px) {
39-
40-
body {
41-
margin: 10px auto;
42-
position: static;
43-
width: 95%;
44-
}
45-
46-
h1 {
47-
font-size: 1.5em;
48-
}
49-
50-
}
50+
}
5151

52-
</style>
53-
</head>
54-
<body>
55-
<h1>Page Not Found</h1>
56-
<p>Sorry, but the page you were trying to view does not exist.</p>
57-
</body>
52+
</style>
53+
</head>
54+
<body>
55+
<h1>Page Not Found</h1>
56+
<p>Sorry, but the page you were trying to view does not exist.</p>
57+
</body>
5858
</html>
59-
<!-- IE requires 512+ bytes: http://www.404-error-page.com/404-error-page-too-short-problem-microsoft-ie.shtml -->
59+
<!-- IE needs 512+ bytes: http://blogs.msdn.com/b/ieinternals/archive/2010/08/19/http-error-pages-in-internet-explorer.aspx -->

0 commit comments

Comments
 (0)