cmd-cgi.py: Don't allow caching of the `list' page.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 30 Mar 2013 14:24:27 +0000 (14:24 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 Mar 2013 14:24:27 +0000 (14:24 +0000)
May further reduce the possibility of proxies crossing wires over.

cmd-cgi.py

index 57de66c..6dc59ee 100644 (file)
@@ -58,6 +58,7 @@ def operate(what, op, services, *args, **kw):
 @CGI.subcommand('list', ['cgi-query'], 'List available accounts')
 def cmd_list_cgi():
   CGI.page('list.fhtml',
+           header = dict(pragma = 'no-cache', cache_control = 'no-cache'),
            title = 'Chopwood: accounts list',
            accts = CU.list_accounts(CU.USER),
            nonce = HA.NONCE)