Improve cache control
This commit is contained in:
parent
01e3911757
commit
f5e31a8f94
1 changed files with 3 additions and 4 deletions
|
@ -72,10 +72,9 @@
|
||||||
|
|
||||||
(defmethod jingle:process-response ((app jingle:app) result)
|
(defmethod jingle:process-response ((app jingle:app) result)
|
||||||
(set-response-header :content-type "text/html; charset=utf-8")
|
(set-response-header :content-type "text/html; charset=utf-8")
|
||||||
(when (string= (hp-env) "dev")
|
(set-response-header :cache-control (if (string= (hp-env) "dev")
|
||||||
(set-response-header :cache-control "no-store, no-cache, must-revalidate")
|
"no-store, no-cache, must-revalidate"
|
||||||
(set-response-header :pragma "no-cache")
|
"public, s-maxage=60, stale-while-revalidate=59"))
|
||||||
(set-response-header :expires "0"))
|
|
||||||
(call-next-method app
|
(call-next-method app
|
||||||
(hsx:render-to-string
|
(hsx:render-to-string
|
||||||
(match result
|
(match result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue