修复Websocket响应可能被缓存的问题

This commit is contained in:
刘祥超
2022-09-30 14:55:42 +08:00
parent 0ae63511d5
commit 5742dfb263

View File

@@ -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