(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).
(find-first-match potential-matches s default-val)
Searches through a collection of potential matches to find the first matching regex and return the associated value.
Searches through a collection of potential matches to find the first matching regex and return the associated value.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close