(add-vary-token vary-val token)Ensure Vary contains TOKEN once (case-insensitive).
Ensure Vary contains TOKEN once (case-insensitive).
(with-nostore response)Add headers that prevent caching of sensitive or user-specific responses. Call this LAST in your threading pipeline so it wins over any earlier headers.
Add headers that prevent caching of sensitive or user-specific responses. Call this LAST in your threading pipeline so it wins over any earlier headers.
(wrap-nostore-when handler)(wrap-nostore-when handler pred)Apply no-store only when (pred req resp) is truthy.
Apply no-store only when (pred req resp) is truthy.
(wrap-with-vary-cookie handler)Middleware that adds 'Vary: Cookie' to the response header.
Middleware that adds 'Vary: Cookie' to the response header.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |