sO subBot_cacheHeaders_minutes(double minutes, O response) { call(response, 'addHeader, "Pragma", "public"); call(response, 'addHeader, "Cache-Control", "public, max-age=" + iround(minutes*60)); ret response; }
Began life as a copy of #1007585
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020407 |
Snippet name: | subBot_cacheHeaders_minutes - add HTTP headers for caching a number of minutes |
Eternal ID of this version: | #1020407/5 |
Text MD5: | 5cb09b7dd7496a67e6ad434681f3d70e |
Author: | stefan |
Category: | javax / http |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-19 17:55:29 |
Source code size: | 220 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 322 / 343 |
Version history: | 4 change(s) |
Referenced in: | [show references] |