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

12
LINES

< > BotCompany Repo | #1026262 // noCacheHeaders - add HTTP headers for no caching

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

Libraryless. Click here for Pure Java version (4818L/34K).

ifdef NoNanoHTTPD
static virtual NanoHTTPD.Response noCacheHeaders(virtual NanoHTTPD.Response r) {
  ret subBot_noCacheHeaders(r);
}
endifdef

ifndef NoNanoHTTPD
static NanoHTTPD.Response noCacheHeaders(NanoHTTPD.Response r) {
  r.addHeader("Cache-Control", "no-cache, must-revalidate, max-age=0");
  ret r;
}
endifndef

Author comment

Began life as a copy of #1007585

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1026262
Snippet name: noCacheHeaders - add HTTP headers for no caching
Eternal ID of this version: #1026262/4
Text MD5: 2cc6c06325bac5912d0be766706ad7e8
Transpilation MD5: de6104e8183d261d58925b37933e3603
Author: stefan
Category: javax / http
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-14 13:50:22
Source code size: 330 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 129 / 207
Version history: 3 change(s)
Referenced in: [show references]