Set the Vary header to a sensible default value

As most pages vary based on the Accept header.
This commit is contained in:
Christopher Baines 2019-08-05 19:43:50 +01:00
parent 8f7398b814
commit 70126f7ed0

View file

@ -87,7 +87,8 @@
(list (build-response
#:code code
#:headers (append extra-headers
'((content-type . (text/html)))))
'((content-type . (text/html))
(vary . (accept)))))
(lambda (port)
(sxml->html sxml port))))
@ -96,7 +97,8 @@
(list (build-response
#:code code
#:headers (append extra-headers
'((content-type . (application/json)))))
'((content-type . (application/json))
(vary . (accept)))))
(lambda (port)
(scm->json json port))))