Skip to content

Commit 15996f5

Browse files
authored
Frontend - No cache for index.html (#907)
1 parent 4bff13c commit 15996f5

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

frontend/httpd.conf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ LoadModule rewrite_module modules/mod_rewrite.so
212212
RewriteRule ^ - [L]
213213

214214
# If the requested resource doesn't exist, use index.html
215-
RewriteRule ^ /index.html
215+
RewriteCond %{REQUEST_URI} ^/index\.html$
216+
RewriteRule ^(.*)$ $1?bust=$RANDOM [L,QSA]
216217
</IfModule>
217218

218219
SSLProxyEngine On

frontend/src/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@
2828
</script>
2929

3030
<meta charset="utf-8">
31+
<meta http-equiv="cache-control" content="max-age=0" />
32+
<meta http-equiv="cache-control" content="no-cache" />
33+
<meta http-equiv="expires" content="0" />
34+
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
35+
<meta http-equiv="pragma" content="no-cache" />
3136
<title>Open Mina</title>
3237
<base href="/">
3338
<meta name="viewport" content="width=device-width, initial-scale=1">

0 commit comments

Comments
 (0)