Liking cljdoc? Tell your friends :D

sturdy.middleware.cache-control


add-vary-tokenclj

(add-vary-token vary-val token)

Ensure Vary contains TOKEN once (case-insensitive).

Ensure Vary contains TOKEN once (case-insensitive).
sourceraw docstring

with-nostoreclj

(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.
sourceraw docstring

(with-vary-cookie response)
source

wrap-nostoreclj

(wrap-nostore handler)
source

wrap-nostore-on-errorsclj

(wrap-nostore-on-errors handler)
source

wrap-nostore-whenclj

(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.
sourceraw docstring

(wrap-with-vary-cookie handler)

Middleware that adds 'Vary: Cookie' to the response header.

Middleware that adds 'Vary: Cookie' to the response header.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close