summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-26 03:00:50 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-26 03:00:50 +0100
commit6c7373b826f14b40da089d39b7f725319deee431 (patch)
treeb6d38e7dad47560737dd7d7470e87264f31a6c57 /src
parentfaaaacfce6941438e5911dc9c207208213f211b4 (diff)
Switch from no-cache to must-revalidate.
Diffstat (limited to 'src')
-rw-r--r--src/mulk/benki/main.clj5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mulk/benki/main.clj b/src/mulk/benki/main.clj
index 2135b6f..0395457 100644
--- a/src/mulk/benki/main.clj
+++ b/src/mulk/benki/main.clj
@@ -31,7 +31,10 @@
(let [response (handler request)]
(if (get-in response [:headers "Cache-Control"])
response
- (assoc-in response [:headers "Cache-Control"] "no-cache")))))
+ (assoc-in response [:headers "Cache-Control"] "must-revalidate")
+ ;;or: no-cache or: no-store
+ ;;Which one is the most appropriate?
+ ))))
(do-once ::init
(noir.server/add-middleware #(wrap-utf-8 %))