(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.
(wrap-cache handler opts)
Options:
Options: - :value - Value for the cache-control header. - :default? - If true, set the value only no cache-control is already set.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close