Skip to content

Commit

Permalink
public http caching
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkvist committed Mar 27, 2013
1 parent 4291478 commit e0a82a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bf3/core.clj
Expand Up @@ -518,9 +518,9 @@
(fn [request] (fn [request]
(let [resp (handler request)] (let [resp (handler request)]
(if (= (:uri request) "/gc/battles") (if (= (:uri request) "/gc/battles")
(assoc-in resp [:headers "Cache-Control"] "max-age=60") (assoc-in resp [:headers "Cache-Control"] "public; max-age=60")
(if (re-find #"^/live/" (:uri request)) (if (re-find #"^/live/" (:uri request))
(assoc-in resp [:headers "Cache-Control"] "max-age=10") (assoc-in resp [:headers "Cache-Control"] "public; max-age=10")
resp))))) resp)))))


(server/add-middleware cache-battles) (server/add-middleware cache-battles)
Expand Down

0 comments on commit e0a82a2

Please sign in to comment.