Skip to content

Commit

Permalink
测试 vary 头是否会影响缓存
Browse files Browse the repository at this point in the history
  • Loading branch information
EtherDream committed Jul 11, 2019
1 parent 91e46d7 commit 7c0a3df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/http-enc-res-hdr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7c0a3df

Please sign in to comment.