Skip to content

Commit

Permalink
[#200] Decrease cache ttl to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
iperdomo committed Jan 29, 2020
1 parent bcfab40 commit c701ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/clojure/org/akvo/flow_api/endpoint/sync.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
(if (unilog/valid-offset? offset db-spec)
(if (= offset (unilog/get-cursor db-spec)) ;; end of the log
(-> (status {} 204)
(header "Cache-Control" "max-age=3600"))
(header "Cache-Control" "max-age=60"))
(let [changes (->
(unilog/process-unilog-events offset db-spec instance-id (:remote-api deps))
(select-keys [:form-instance-changed
Expand Down

0 comments on commit c701ed0

Please # to comment.