(cache-control url response)Add Cache Control Headers for successful responses
Add Cache Control Headers for successful responses
(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).
(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.
(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.
(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
(wrap-cache-control handler)Wraps responses with a cache-control header
Wraps responses with a cache-control header
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |