Liking cljdoc? Tell your friends :D

macchiato.middleware.not-modified

Middleware that returns a 304 Not Modified response for responses with Last-Modified headers.

Middleware that returns a 304 Not Modified response for responses with Last-Modified headers.
raw docstring

not-modified-responsecljs

(not-modified-response response request)

Returns 304 or original response based on response and request. See: wrap-not-modified.

Returns 304 or original response based on response and request.
See: wrap-not-modified.
sourceraw docstring

Streamcljs

source

wrap-not-modifiedcljs

(wrap-not-modified handler)

Middleware that returns a 304 Not Modified from the wrapped handler if the handler response has an ETag or Last-Modified header, and the request has a If-None-Match or If-Modified-Since header that matches the response.

Middleware that returns a 304 Not Modified from the wrapped handler if the
handler response has an ETag or Last-Modified header, and the request has a
If-None-Match or If-Modified-Since header that matches the response.
sourceraw docstring

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

× close