mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-18 15:00:13 +01:00
Add cache manifest for offline support.
This commit is contained in:
parent
9997131c9e
commit
ebcd2de8ed
3 changed files with 34 additions and 1 deletions
23
demo/Web.config
Normal file
23
demo/Web.config
Normal 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>
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml" manifest="offline.appcache">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<link href="default.css" rel="stylesheet" type="text/css"/>
|
<link href="default.css" rel="stylesheet" type="text/css"/>
|
||||||
|
|
|
||||||
10
demo/offline.appcache
Normal file
10
demo/offline.appcache
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue