1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2025-07-03 01:06:52 +02:00

add modified apicache library with disabling client cache

This commit is contained in:
LouisLam
2021-09-22 00:58:22 +08:00
parent 0834770509
commit 8c7ee94769
6 changed files with 831 additions and 14 deletions

View File

@ -4,7 +4,7 @@ const dayjs = require("dayjs");
const { debug } = require("../../src/util");
const ImageDataURI = require("../image-data-uri");
const Database = require("../database");
const fs = require("fs");
const apicache = require("../modules/apicache");
module.exports.statusPageSocketHandler = (socket) => {
@ -76,6 +76,8 @@ module.exports.statusPageSocketHandler = (socket) => {
try {
checkLogin(socket);
apicache.clear();
const header = "data:image/png;base64,";
// Check logo format