|
|
@@ -33,6 +33,8 @@ const redisClient = (0, redis_1.createClient)({ url: redisUri }); // 👈 使用
|
|
|
exports.redisClient = redisClient;
|
|
|
redisClient.on("connect", () => console.log("Connected to Redis"));
|
|
|
redisClient.on("error", (err) => console.error("Redis connection error:", err));
|
|
|
+// --- 关键修改:全局禁用 ETag ---
|
|
|
+app.set("etag", false);
|
|
|
// Connect to Redis when the application starts
|
|
|
(async () => {
|
|
|
try {
|