diff --git a/lua/http-enc-res-hdr.lua b/lua/http-enc-res-hdr.lua index 6386dcfa09c..4b78620d9d1 100644 --- a/lua/http-enc-res-hdr.lua +++ b/lua/http-enc-res-hdr.lua @@ -103,6 +103,7 @@ local function nodeSwitched() addHdr('--switched', '1') ngx.header['cache-control'] = 'no-cache' + ngx.header['vary'] = '--url' ngx.var._switched = resLenStr ngx.ctx._switched = true