~/talk

Caching POST data with Varnish

Talkat DrupalCamp Spain 2017 · 2017-05-05..05-06· [web-performance]
slides:none on file

Caches POST search requests for repeatable AJAX Views and Drupal Commerce flows by installing Varnish 5 (unstable) and compiling the body_access module, then adding a few VCL lines to include method and body data in the hash (grabs ~10–100KB). Works by differentiating GET vs POST on identical URLs and hashing body or a custom header; corner cases include collisions if relying only on Content-Length. Recommended fix: add a client-side MD5 or unique header and include it in the hash so cached responses match the exact POST payload.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.