Add cache manifest for offline support.

This commit is contained in:
David Anson 2015-05-05 18:36:45 -07:00
parent 9997131c9e
commit ebcd2de8ed
3 changed files with 34 additions and 1 deletions

23
demo/Web.config Normal file
View file

@ -0,0 +1,23 @@
<?xml version="1.0"?>
<configuration>
<!-- Standard ASP.NET configuration; see http://go.microsoft.com/fwlink/?LinkId=169433 -->
<system.web>
<compilation debug="false" targetFramework="4.0"/>
</system.web>
<!-- Register MIME type for cache manifest -->
<system.webServer>
<staticContent>
<mimeMap fileExtension=".appcache" mimeType="text/cache-manifest"/>
</staticContent>
</system.webServer>
<!-- Disable caching for cache manifest file -->
<location path="offline.appcache">
<system.webServer>
<staticContent>
<clientCache cacheControlMode="DisableCache"/>
</staticContent>
</system.webServer>
</location>
</configuration>

View file

@ -1,5 +1,5 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" manifest="offline.appcache">
<head>
<meta charset="utf-8"/>
<link href="default.css" rel="stylesheet" type="text/css"/>

10
demo/offline.appcache Normal file
View file

@ -0,0 +1,10 @@
CACHE MANIFEST
# 2015-05-05
browser-polyfills.js
default.css
default.htm
default.js
favicon.ico
markdown-it.min.js
markdownlint-browser.js
require-stub.js