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