]> git.nbdom.net Git - nb.git/commitdiff
lib/lua/nb.lua
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 13 Jun 2018 01:10:57 +0000 (02:10 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 13 Jun 2018 01:10:57 +0000 (02:10 +0100)
lib/lua/nb.lua
lib/php/page.php

index 0fa6248712c4d8697de7b868b067de6d116e968a..b05229a684a26c35530cd7c24d08652bce52fa49 100644 (file)
@@ -39,6 +39,8 @@ function nb:ngx_location_tmpl(fheader,ffooter)
        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
index c6bc237dfb128a5ca05587ced7dd3c241b0dc634..70395280348c0e876937dfdbbfb7f362bf98efbd 100644 (file)
@@ -335,7 +335,8 @@ class Page extends nb {
     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) {