telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit b0c0b76122d36f3454cc539a4eee05f0f42fbe77
parent 115ef4d7460ed636bd56f67d32005a022e5fe90a
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed,  7 Mar 2018 22:37:14 +0100

Add Cache-Control header in the 'jsonip' endpoint as well

Diffstat:
Mtelize.conf | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/telize.conf b/telize.conf @@ -50,6 +50,8 @@ server { content_by_lua_block { local cjson = require "cjson" + ngx.header["Cache-Control"] = "no-cache"; + local json = cjson.encode({ ip = ngx.var.remote_addr })