Libraryless. Click here for Pure Java version (4818L/34K).
1 | ifdef NoNanoHTTPD |
2 | static virtual NanoHTTPD.Response noCacheHeaders(virtual NanoHTTPD.Response r) {
|
3 | ret subBot_noCacheHeaders(r); |
4 | } |
5 | endifdef |
6 | |
7 | ifndef NoNanoHTTPD |
8 | static NanoHTTPD.Response noCacheHeaders(NanoHTTPD.Response r) {
|
9 | r.addHeader("Cache-Control", "no-cache, must-revalidate, max-age=0");
|
10 | ret r; |
11 | } |
12 | endifndef |
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: | 410 / 549 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |