فهرست منبع

修复 304 缓存问题(临时缓解,未完全解决)

zjcqoo 6 سال پیش
والد
کامیت
cd8ebce22d
3فایلهای تغییر یافته به همراه15 افزوده شده و 4 حذف شده
  1. 5 3
      README.md
  2. 9 0
      changelogs/v0.1.1.md
  3. 1 1
      lua/http-enc-res-hdr.lua

+ 5 - 3
README.md

@@ -1,7 +1,9 @@
 
 # 更新
 
-* 2019-07-24 [v0.1.0](tree/0.1.0) 发布,主要修复了缓存失效的问题。网络接口和之前版本不兼容,请及时更新服务端和 cfworker。
+* 2019-08-?? [v0.1.1](changelogs/v0.1.1.md),支持线路自动切换,服务端增加卸载脚本。
+
+* 2019-07-24 [v0.1.0](changelogs/v0.1.0.md) 发布,主要修复了缓存失效的问题。网络接口和之前版本不兼容,请及时更新服务端和 cfworker。
 
 * 2019-06-22 [cfworker 无服务器版](cf-worker) 发布,长期使用演示服务的请使用该版本。
 
@@ -11,7 +13,7 @@
 # 安装
 
 ```bash
-curl https://raw.githubusercontent.com/EtherDream/jsproxy/0.1.0/i.sh | bash
+curl https://raw.githubusercontent.com/EtherDream/jsproxy/0.1.1/i.sh | bash
 ```
 
 * 自动安装目前只支持 Linux x64,并且需要 root 权限
@@ -28,7 +30,7 @@ curl https://raw.githubusercontent.com/EtherDream/jsproxy/0.1.0/i.sh | bash
 将域名 `example.com` 解析到服务器 IP,然后执行:
 
 ```bash
-curl https://raw.githubusercontent.com/EtherDream/jsproxy/dev/i.sh | bash -s example.com
+curl https://raw.githubusercontent.com/EtherDream/jsproxy/0.1.1/i.sh | bash -s example.com
 ```
 
 访问: `https://example.com:8443`

+ 9 - 0
changelogs/v0.1.1.md

@@ -0,0 +1,9 @@
+# v0.1.1
+
+## 更新内容
+
+* 增加卸载脚本(服务端)
+
+* 增加自动切换线路的功能(前端)
+
+* 

+ 1 - 1
lua/http-enc-res-hdr.lua

@@ -33,7 +33,7 @@ local function flushHdr()
   local status = ngx.status
 
   -- 前端优先使用该字段作为状态码
-  if status ~= 200 then
+  if status ~= 200 and status ~= 304 then
     ngx.header['--s'] = status
   end