Liking cljdoc? Tell your friends :D

andrewslai.clj.http-api.static-content


add-cache-controlclj

(add-cache-control m v)
source

cache-30dclj

source

cache-controlclj

(cache-control url response)

Add Cache Control Headers for successful responses

Add Cache Control Headers for successful responses
sourceraw docstring

cache-control-headerclj

(cache-control-header url)

Find the correct cache control headers for a given URL. Useful because we are serving static content from S3 - so some content should have long caching (images) while others should not (actual site).

Find the correct cache control headers for a given URL.
Useful because we are serving static content from S3 - so some content should have
long caching (images) while others should not (actual site).
sourceraw docstring

classpath-static-content-wrapperclj

(classpath-static-content-wrapper options)
(classpath-static-content-wrapper root-path options)

Returns middleware that intercepts requests and serves files from the ClassLoader's Classpath.

Returns middleware that intercepts requests and serves files from the
ClassLoader's Classpath.
sourceraw docstring

file-static-content-wrapperclj

(file-static-content-wrapper root-path options)

Returns middleware that intercepts requests and serves files relative to the root path.

Returns middleware that intercepts requests and serves files relative to
the root path.
sourceraw docstring

no-cacheclj

source

static-contentclj

(static-content filesystem)

Returns Middleware that serves static content from a filesystem implementing the FileSystem protocol

Returns Middleware that serves static content from a filesystem
implementing the FileSystem protocol
sourceraw docstring

url-caching-policyclj

source

wrap-cache-controlclj

(wrap-cache-control handler)

Wraps responses with a cache-control header

Wraps responses with a cache-control header
sourceraw docstring

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

× close