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

8
LINES

< > BotCompany Repo | #1002773 // serveHTMLNoCache

JavaX fragment (include)

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

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: 638 / 606
Version history: 1 change(s)
Referenced in: [show references]