Skip to content

Instantly share code, notes, and snippets.

@giuliohome
Forked from robert-claypool/app_offline.htm
Created May 14, 2019 02:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save giuliohome/202a33d17a4ebb35f1ed182eeaf9f5a3 to your computer and use it in GitHub Desktop.
Save giuliohome/202a33d17a4ebb35f1ed182eeaf9f5a3 to your computer and use it in GitHub Desktop.
A simple "app offline" template for ASP.NET
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Offline</title>
</head>
<body style="margin:3em;font-family:sans-serif">
<h2>Offline</h2>
<p>This site is offline for maintenance.</p>
<!--
Adding some hidden content so that IE "Friendly Errors" don't keep
this message from displaying. (It will show a "friendly" 404
error if the content isn't at least 512 bytes.)
This is mostly a problem for IE6 which has "Friendly Errors" on by default.
See http://weblogs.asp.net/scottgu/App_5F00_Offline.htm-and-working-around-the-_2200_IE-Friendly-Errors_2200_-feature
<h2>This site is offline.</h2>
<h2>This site is offline.</h2>
<h2>This site is offline.</h2>
<h2>This site is offline.</h2>
<h2>This site is offline.</h2>
-->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment