Skip to content

Commit 9d84278

Browse files
adds cache control to web deploy to ensure latest content access
1 parent 32442ae commit 9d84278

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ jobs:
143143
<head>
144144
<meta charset="UTF-8">
145145
<meta name="viewport" content="width=device-width, initial-scale=1.0">
146+
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
147+
<meta http-equiv="Pragma" content="no-cache">
148+
<meta http-equiv="Expires" content="0">
146149
<title>Muninn - Web Builds</title>
147150
<style>
148151
body {

src/main_web/index_template.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<meta name="description" content="Make games using Odin + Raylib that work in the browser">
1010
<meta name="viewport" content="width=device-width">
1111

12+
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
13+
<meta http-equiv="Pragma" content="no-cache">
14+
<meta http-equiv="Expires" content="0">
15+
1216
<style>
1317
body {
1418
margin: 0px;

src/main_web/single_file_template.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
<meta name="description" content="Make games using Odin + Raylib that work in the browser">
1010
<meta name="viewport" content="width=device-width">
1111

12+
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
13+
<meta http-equiv="Pragma" content="no-cache">
14+
<meta http-equiv="Expires" content="0">
15+
1216
<style>
1317
body {
1418
margin: 0px;

0 commit comments

Comments
 (0)