Improve cache strategy
This commit is contained in:
parent
06cc61f247
commit
1b7b15da5f
1 changed files with 3 additions and 6 deletions
|
@ -18,12 +18,9 @@
|
|||
(if (string= (hp-env) "dev")
|
||||
"private, no-store"
|
||||
(cond
|
||||
((eq strategy :static)
|
||||
"public, max-age=31536000, immutable")
|
||||
((eq strategy :dynamic)
|
||||
"public, max-age=60 stale-while-revalidate=86400, stale-if-error=86400")
|
||||
(t
|
||||
"private, no-store")))))
|
||||
((eq strategy :static) "public, max-age=31536000, immutable")
|
||||
((eq strategy :dynamic) "public, max-age=60")
|
||||
(t "private, no-store")))))
|
||||
|
||||
(defmethod jingle:process-response ((app jingle:app) result)
|
||||
(set-response-header :content-type "text/html; charset=utf-8")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue