mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-03 15:00:24 +08:00
修复Websocket响应可能被缓存的问题
This commit is contained in:
@@ -19,6 +19,11 @@ import (
|
||||
|
||||
// 读取缓存
|
||||
func (this *HTTPRequest) doCacheRead(useStale bool) (shouldStop bool) {
|
||||
// 需要动态Upgrade的不缓存
|
||||
if len(this.RawReq.Header.Get("Upgrade")) > 0 {
|
||||
return
|
||||
}
|
||||
|
||||
this.cacheCanTryStale = false
|
||||
|
||||
var cachePolicy = this.ReqServer.HTTPCachePolicy
|
||||
|
||||
Reference in New Issue
Block a user