mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-27 07:26:35 +08:00
清理缓存时也清理HEAD缓存
This commit is contained in:
@@ -265,10 +265,6 @@ func (this *HTTPWriter) PrepareCache(resp *http.Response, size int64) {
|
||||
|
||||
var expiredAt = utils.UnixTime() + life
|
||||
var cacheKey = this.req.cacheKey
|
||||
var method = this.req.Method()
|
||||
if method != http.MethodGet && method != http.MethodPost {
|
||||
cacheKey += cacheMethodSuffix + this.req.Method()
|
||||
}
|
||||
cacheWriter, err := storage.OpenWriter(cacheKey, expiredAt, this.StatusCode(), size, false)
|
||||
if err != nil {
|
||||
if !caches.CanIgnoreErr(err) {
|
||||
|
||||
Reference in New Issue
Block a user