summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-26 11:17:19 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2012-02-26 11:17:19 +0100
commitdee7484cd49a77e79dcfff28781d85b552496a22 (patch)
tree280e7fddd0a1290895956ce83a653dfd917c1461
parent8cd42a9935d82b4b5cf52b49701b0b3f5c34c2ec (diff)
Switch from must-revalidate to no-store.
-rw-r--r--src/mulk/benki/main.clj7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mulk/benki/main.clj b/src/mulk/benki/main.clj
index 0395457..f89c9df 100644
--- a/src/mulk/benki/main.clj
+++ b/src/mulk/benki/main.clj
@@ -31,9 +31,10 @@
(let [response (handler request)]
(if (get-in response [:headers "Cache-Control"])
response
- (assoc-in response [:headers "Cache-Control"] "must-revalidate")
- ;;or: no-cache or: no-store
- ;;Which one is the most appropriate?
+ (assoc-in response [:headers "Cache-Control"] "no-store")
+ ;; no-cache, no-store, must-revalidate
+ ;; Which one is the most appropriate?
+ ;; (is must-revalidate even valid for server responses?)
))))
(do-once ::init