1 | sO subBot_cacheHeaders_minutes(double minutes, O response) { |
2 | call(response, 'addHeader, "Pragma", "public"); |
3 | call(response, 'addHeader, "Cache-Control", "public, max-age=" + iround(minutes*60)); |
4 | ret response; |
5 | } |
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: | 324 / 346 |
Version history: | 4 change(s) |
Referenced in: | [show references] |