diff options
Diffstat (limited to 'server.lua')
-rw-r--r-- | server.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -7,6 +7,7 @@ local aconf = require('aconf') local mbin = aconf.model.binary local mnode = aconf.model.node local isinstance = aconf.object.isinstance +local update = require('aconf.util').update local json = require('cjson') local posix = require('posix') @@ -24,6 +25,14 @@ local sessions = {} return function(env) local function wrap(code, headers, res, encode) if not headers then headers = {} end + update( + headers, + { + ['Cache-Control']='no-cache, no-store, must-revalidate', + Pragma='no-cache', + Expires='0' + } + ) if res then local ctype |