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