guoziyun 9 ماه پیش
والد
کامیت
ba4c21be32
2فایلهای تغییر یافته به همراه0 افزوده شده و 5 حذف شده
  1. 0 2
      oms/dist/src/app.js
  2. 0 3
      oms/src/app.ts

+ 0 - 2
oms/dist/src/app.js

@@ -33,8 +33,6 @@ 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 {

+ 0 - 3
oms/src/app.ts

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