Liking cljdoc? Tell your friends :D

metosin.ring.util.cache


cache-30dclj

source

cache-controlclj

(cache-control response)
(cache-control response value)
(cache-control response value default?)

Returns an updated Ring response with the given or default cache-control header.

Third parameter can be set to truthy value to only set cache-control if it is not already set.

Returns an updated Ring response with the given or default cache-control header.

Third parameter can be set to truthy value to only set cache-control if it is not
already set.
sourceraw docstring

no-cacheclj

source

wrap-cacheclj

(wrap-cache handler opts)

Options:

  • :value - Value for the cache-control header.
  • :default? - If true, set the value only no cache-control is already set.
Options:
- :value    - Value for the cache-control header.
- :default? - If true, set the value only no cache-control is already set.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close