This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-05
Channels
- # adventofcode (246)
- # aleph (5)
- # aws (7)
- # beginners (161)
- # boot (3)
- # calva (42)
- # cider (40)
- # clara (10)
- # cljdoc (7)
- # cljs-dev (40)
- # cljsrn (6)
- # clojure (170)
- # clojure-dev (8)
- # clojure-greece (2)
- # clojure-italy (15)
- # clojure-kc (2)
- # clojure-new-zealand (13)
- # clojure-nl (13)
- # clojure-russia (3)
- # clojure-spec (5)
- # clojure-uk (160)
- # clojurescript (72)
- # clojurex (1)
- # cursive (7)
- # data-science (9)
- # datascript (1)
- # datomic (120)
- # devcards (4)
- # emacs (18)
- # figwheel-main (10)
- # fulcro (34)
- # kaocha (3)
- # luminus (1)
- # lumo (6)
- # music (1)
- # nrepl (23)
- # off-topic (2)
- # pedestal (4)
- # re-frame (42)
- # reagent (36)
- # reitit (10)
- # ring-swagger (21)
- # shadow-cljs (124)
- # spacemacs (6)
- # tools-deps (14)
- # unrepl (3)
- # vim (2)
@mv: Possible. I have a /staticpart/*file
route and I mount a (ring-middlewares/file document-root)
interceptor there. From experience it appears that this interceptor will use the full path, including the /staticpart
to locate files on the filesystem. I mitigate that using string/replace
on the :path-info
.
is anyone using io.pedestal.http.ring-middlewares/not-modified
? I'm noticing that it doesn't return 304 responses when the following interceptor does:
(def test-interceptor
{:name ::test
:leave (ring-middlewares/response-fn-adapter
(fn [response request]
(not-modified/not-modified-response response request)))})
@U050TNB9F weird. I’m not using it anywhere but it’s based on the ring not-modified middleware. There’s also a test for it here: https://github.com/pedestal/pedestal/blob/09dd88c4ce7f89c7fbb7a398077eb970b3785d2d/service/test/io/pedestal/http/ring_middlewares_test.clj#L140-L150
Thanks, I guess I’ll keep digging then :)