local file = ngx.var.request_filename;
local path = file:gsub('/[^/]+$','')
local vars = {
+ path_file = path,
+ path_uri = ngx.var.request_uri:gsub('?.*$',''),
}
if not fheader then fheader = root .. "/tmpl/header.tmpl.html" end
header("Expires: $ts");
header("Last-Modified: $ts");
header("Pragma: no-cache");
- header("Cache-Control: no-cache, must-revalidate");
+# NB 12.06.18 header("Cache-Control: no-cache, must-revalidate");
+ header("Cache-Control: private, no-cache, no-store, must-revalidate, post-check=0, pre-check=0");
}
public static function headers_cache($seconds_to_cache=3600) {