Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reinstating offline, done properly this time

  • Loading branch information...
commit 21a05e386b2b224b59e6ea2ef56f041ee2ef7c6c 1 parent 105074e
@jakearchibald authored
View
5 s3put.py
@@ -29,8 +29,6 @@
import time
import mimetypes
-from boto.exception import S3ResponseError
-
GZIP_EXTENSIONS = ['.css', '.js', '.ttf', '.appcache']
@@ -44,6 +42,9 @@ def get_headers(fullpath):
datetime.timedelta(days=365 * 2)).timetuple())))
# HTTP/1.1
headers['Cache-Control'] = 'max-age %d' % (3600 * 24 * 365 * 2)
+ else:
+ headers['Cache-Control'] = 'must-revalidate'
+
return headers
View
7 www/assets/6/offline.appcache
@@ -1,7 +0,0 @@
-CACHE MANIFEST
-
-script/mainmin.js
-style/mainmin.css
-style/fonts/pro.ttf
-style/imgs/sprites1.png
-tutorial-sprite.png
View
2  www/index.html
@@ -1,5 +1,5 @@
<!DOCTYPE html>
-<html lang="en">
+<html lang="en" manifest="offline.appcache">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
View
7 www/offline.appcache
@@ -0,0 +1,7 @@
+CACHE MANIFEST
+
+assets/6/script/mainmin.js
+assets/6/style/mainmin.css
+assets/6/style/fonts/pro.ttf
+assets/6/style/imgs/sprites1.png
+assets/6/tutorial-sprite.png
Please sign in to comment.
Something went wrong with that request. Please try again.