mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-23 21:46:21 +00:00
fix cache problem for Chrome
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
apiVersion: v1
|
||||
description: A Helm chart for KubeInvaders
|
||||
name: kubeinvaders
|
||||
appVersion: 1.1
|
||||
version: 1.1
|
||||
appVersion: 1.2
|
||||
version: 1.2
|
||||
home: https://github.com/lucky-sideburn/KubeInvaders
|
||||
|
||||
sources:
|
||||
|
||||
@@ -25,7 +25,7 @@ replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: luckysideburn/kubeinvaders
|
||||
tag: v1.1
|
||||
tag: v1.2
|
||||
pullPolicy: Always
|
||||
|
||||
nameOverride: ""
|
||||
|
||||
+7
-11
@@ -143,10 +143,10 @@ function getNodes(){
|
||||
oReq.send();
|
||||
}
|
||||
|
||||
function getKubeItems() {
|
||||
window.setInterval(function getKubeItems() {
|
||||
getNodes();
|
||||
getPods();
|
||||
}
|
||||
}, 1000)
|
||||
|
||||
function keyDownHandler(e) {
|
||||
if(e.key == "Right" || e.key == "ArrowRight") {
|
||||
@@ -320,8 +320,7 @@ function drawSpaceship() {
|
||||
ctx.closePath();
|
||||
}
|
||||
|
||||
function draw() {
|
||||
|
||||
window.setInterval(function draw() {
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
drawSpaceship();
|
||||
|
||||
@@ -381,7 +380,7 @@ function draw() {
|
||||
ctx.fillText('s => Activate or deactivate shuffle for aliens', 10, 340);
|
||||
ctx.fillText('n => Change namespace', 10, 360);
|
||||
}
|
||||
}
|
||||
}, 10)
|
||||
|
||||
function podExists(podName) {
|
||||
for (i=0; i<aliens.length; i++) {
|
||||
@@ -401,7 +400,7 @@ function findReplace() {
|
||||
return -1;
|
||||
}
|
||||
|
||||
function setAliens() {
|
||||
window.setInterval(function setAliens() {
|
||||
if (shuffle) {
|
||||
pods = pods.sort(() => Math.random() - 0.5)
|
||||
}
|
||||
@@ -443,10 +442,7 @@ function setAliens() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 1000)
|
||||
|
||||
getEndpoint();
|
||||
getNamespaces();
|
||||
setInterval(draw, 10);
|
||||
setInterval(getKubeItems, 1000);
|
||||
setInterval(setAliens, 1000);
|
||||
getNamespaces();
|
||||
@@ -12,7 +12,6 @@ server {
|
||||
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
|
||||
try_files $uri $uri/ =404;
|
||||
add_header Last-Modified $date_gmt;
|
||||
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
||||
if_modified_since off;
|
||||
expires off;
|
||||
etag off;
|
||||
|
||||
Reference in New Issue
Block a user