CrossClj

0.4.1 docs

SourceDocs



RECENT
    VARS
    cache-30d
    cache-control
    no-cache
    wrap-cache

    « Index of all namespaces of this project

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