Re: New ring middleware: browser-caching

2015-07-28 Thread edbond
Hello Stephen, Couple of comments about code: Instead of not nil? you can use some? since clojure 1.6: user= (doc some?) - clojure.core/some? ([x]) Returns true if x is not nil, false otherwise. str/split and get by 0 may result in error: user= (str/split : #:) [] user=

New ring middleware: browser-caching

2015-07-26 Thread Stephen Lester
Hello everyone, I just wrote my first ring middleware (I'm pretty much a newbie to functional programming and Clojure in general), and I'd appreciate if someone wants to give me some tips or constructive criticism (and it can be off-list as well). The goal is to enable per-file-type browser