No cache in offline mode (#90)

This commit is contained in:
yhirano 2017-07-18 20:30:29 +09:00 committed by David Russell
parent 0d29035f08
commit 50e6b05703
2 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,10 @@
<meta property="og:description" content="@rndr.pageDescription()" />
<meta property="og:url" content="@rndr.landingAbs()" />
<meta property="og:image" content="https://d1z75bzl1vljy2.cloudfront.net/img/gp-promo.png" />
@if(offline) {
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
}
<link rel="icon" href="@deps.gitpitchimg(offline)/favicon.ico"/>
<link href="@deps.bootstrap(offline)/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="@deps.fontawesome(offline)/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

View File

@ -10,6 +10,10 @@
<title>@ssm.params().asTitle()</title>
<meta content="Markdown Presentation powered by GitPitch." name="description">
<meta content="GitHub, GitLab, Bitbucket, Markdown, Slideshow, Presentation, Developers, PITCHME" name="keywords">
@if(offline) {
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
}
<link rel="icon" href="@deps.gitpitchimg(offline)/favicon.ico"/>
<link href="@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/css/reveal.css" rel="stylesheet" type="text/css"/>
<link href="@deps.revealjs(offline, ssm.fetchRevealVersionOverride())/css/theme/@ssm.fetchThemeCSS()" rel="stylesheet" type="text/css"/>