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

4
LINES

< > BotCompany Repo | #1026263 // subBot_noCacheHeaders - add HTTP headers for no caching

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2128L/14K).

static virtual NanoHTTPD_Response subBot_noCacheHeaders(virtual NanoHTTPD_Response r) {
  call(r, 'addHeader, "Cache-Control", "no-cache, must-revalidate, max-age=0");
  ret r;
}

Author comment

Began life as a copy of #1026262

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026263
Snippet name: subBot_noCacheHeaders - add HTTP headers for no caching
Eternal ID of this version: #1026263/1
Text MD5: 9e7124a4950cb03f158acb71b8df7a04
Transpilation MD5: e11ebe3099a4f63f206213f9634a8a40
Author: stefan
Category: javax / http
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-09 14:52:55
Source code size: 181 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 184 / 266
Referenced in: [show references]