Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1002773 // serveHTMLNoCache

JavaX fragment (include)

static NanoHTTPD.Response serveHTMLNoCache(O html) {
  if (html instanceof NanoHTTPD.Response)
    ret (NanoHTTPD.Response) html;
    
  NanoHTTPD.Response response = serveHTML((S) html);
  response.addHeader("Cache-Control", "no-cache, must-revalidate, max-age=0");
  ret response;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002773
Snippet name: serveHTMLNoCache
Eternal ID of this version: #1002773/2
Text MD5: daaea696822d6a68ed6bf7a1e236ddb7
Author: stefan
Category: javac
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-19 19:36:38
Source code size: 293 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 564 / 532
Version history: 1 change(s)
Referenced in: [show references]