Page MenuHomePhabricator
Paste P9751

TS_LUA_CONFIG_HTTP_CACHE_HTTP not pass
ActivePublic

Authored by ema on Tue, Nov 26, 2:53 PM.
On cp3050, where we skip the cache by setting TS_LUA_CONFIG_HTTP_CACHE_HTTP to 0:
root@cp3050:~# curl -v -H "Authorization: bananaEmaTest" -H "Host: it.wikipedia.org" http://localhost:3128/wiki/Sampdoria 2>&1 | grep -i X-Cache-Int
< X-Cache-Int: cp3050 miss
root@cp3050:~# curl -v -H "Authorization: bananaEmaTest" -H "Host: it.wikipedia.org" http://localhost:3128/wiki/Sampdoria 2>&1 | grep -i X-Cache-Int
< X-Cache-Int: cp3050 hit
Compare with cp3052, where we hide CC:
root@cp3052:~# curl -v -H "Authorization: bananaEmaTest" -H "Host: it.wikipedia.org" http://localhost:3128/wiki/Sampdoria 2>&1 | grep -i X-Cache-Int
< X-Cache-Int: cp3052 miss
root@cp3052:~# curl -v -H "Authorization: bananaEmaTest" -H "Host: it.wikipedia.org" http://localhost:3128/wiki/Sampdoria 2>&1 | grep -i X-Cache-Int
< X-Cache-Int: cp3052 miss

Event Timeline

ema created this paste.Tue, Nov 26, 2:53 PM