Set the Vary header to a sensible default value
As most pages vary based on the Accept header.
This commit is contained in:
parent
8f7398b814
commit
70126f7ed0
1 changed files with 4 additions and 2 deletions
|
|
@ -87,7 +87,8 @@
|
||||||
(list (build-response
|
(list (build-response
|
||||||
#:code code
|
#:code code
|
||||||
#:headers (append extra-headers
|
#:headers (append extra-headers
|
||||||
'((content-type . (text/html)))))
|
'((content-type . (text/html))
|
||||||
|
(vary . (accept)))))
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(sxml->html sxml port))))
|
(sxml->html sxml port))))
|
||||||
|
|
||||||
|
|
@ -96,7 +97,8 @@
|
||||||
(list (build-response
|
(list (build-response
|
||||||
#:code code
|
#:code code
|
||||||
#:headers (append extra-headers
|
#:headers (append extra-headers
|
||||||
'((content-type . (application/json)))))
|
'((content-type . (application/json))
|
||||||
|
(vary . (accept)))))
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(scm->json json port))))
|
(scm->json json port))))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue