]> git.sven.stormbind.net Git - sven/scripts.git/blob - nginx/set_cache_control.conf
Ignore timeouts on the envertech portal
[sven/scripts.git] / nginx / set_cache_control.conf
1 location /cc {
2  default_type 'text/plain';
3  content_by_lua_block {
4   local cc=ngx.req.get_headers()["cc"]
5   if cc ~= nil then
6    ngx.header["cache-control"]=cc
7    ngx.say(cc)
8   else
9    ngx.say("moep - no cc header found")
10   end
11  }
12 }