Skip to content

Instantly share code, notes, and snippets.

@mirzu
Created November 30, 2012 20:04
Show Gist options
  • Save mirzu/4178202 to your computer and use it in GitHub Desktop.
Save mirzu/4178202 to your computer and use it in GitHub Desktop.
diff --git a/index.html b/index.html
index edc38c9..6e37719 100644
--- a/index.html
+++ b/index.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html>
+<html manifest="offline.manifest.php">
<head>
<title>Harvard proposal</title>
<link rel="stylesheet" href="/assets/css/main.css">
diff --git a/offline.manifest.php b/offline.manifest.php
new file mode 100644
index 0000000..dfe26da
--- /dev/null
+++ b/offline.manifest.php
@@ -0,0 +1,9 @@
+<?php
+header("Content-Type: text/cache-manifest");
+?>
+CACHE MANIFEST
+<?php echo('#'. date(DATE_RSS)); ?>
+js/require.js
+/
+NETWORK:
+*
\ No newline at end of file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment