Skip to content

Commit

Permalink
auto redirect to HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
unbug committed Nov 22, 2018
1 parent 89bdd1e commit a3804f7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cache.manifest
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CACHE MANIFEST
# Build: 20181117104641
# Build: 20181122065617

CACHE:
resources/fonts/Dressedless_Three.svg
Expand Down
2 changes: 1 addition & 1 deletion index.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions static/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<link rel="apple-touch-icon-precomposed" href="resources/images/codelf_logo.png">
<link title="CODELF" type="application/opensearchdescription+xml" rel="search" href="./opensearch.xml">
@@include("html/styles.html")
<script>
// auto redirect to HTTPS
if (window.location.host.indexOf('github.io') != -1 && window.location.protocol != "https:"){
window.location.protocol = "https";
}
</script>
</head>
<body ontouchstart="">
@@include("html/main.html")
Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
// cache, then increment the CACHE_VERSION value. It will kick off the service worker update
// flow and the old cache(s) will be purged as part of the activate event handler when the
// updated service worker is activated.
var CACHE_VERSION = 20181117104641;
var CACHE_VERSION = 20181122065617;
var CURRENT_CACHES = {
prefetch: 'prefetch-cache-v' + CACHE_VERSION
};
Expand Down

0 comments on commit a3804f7

Please sign in to comment.