         (files "/static/")
         (not-found "Unrecognized request path!\n"))
       (wrap-params)
-      (exception-catcher)))
+      (exception-catcher)
+      (add-headers)))

(def adjustment-mode-regex #"\w+")
(def thumbnail-mode-regex #"[\w-]+")
(def size-regex #"\d+")




        (log/warn (str e))
        (status (response (str e)) 503)))))

(defn add-headers
  [handler]
  (fn [request]
    (let [response (handler request)]
      (header response "X-Served-By" hostname)
      (header response "X-Cache" "ORIGIN")
      (header response "X-Cache-Hits" "ORIGIN"))))

(defmulti image-file->response-object class)

(defmethod image-file->response-object java.io.File
