cache is insensitive to `Accept`/`Content-Type`
Opened this issue · 0 comments
Rdataflow commented
The cache doesn't consider the Accept
request header. In some rare edge cases this can lead to the wrong format being sent.
repro steps:
# first query priming the cache
curl https://lindas-cached.test.cluster.ldbar.ch/query -H 'Accept: application/n-quads' --data-raw 'query=DESCRIBE%20%3Chttps%3A%2F%2Fld.admin.ch%2Fcanton%2F2%3E'
# second query reusing the cache - but delivering the wrong format
curl https://lindas-cached.test.cluster.ldbar.ch/query -H 'Accept: application/n-triples' --data-raw 'query=DESCRIBE%20%3Chttps%3A%2F%2Fld.admin.ch%2Fcanton%2F2%3E'
varnish-post/config/default.vcl
Lines 73 to 86 in 2613fb0