Y
Hacker News
new
|
ask
|
show
|
jobs
by
acdha
4176 days ago
You can handle cookies in pure VCL – the code's not particularly elegant but it's manageable for light usage:
https://www.varnish-cache.org/trac/wiki/VCLExampleRemovingSo...
1 comments
Argorak
4176 days ago
I'm not sure whether I would call "munging the cookie header with regexps" "cookie handling" ;).
link
acdha
4176 days ago
Agreed – it's possible and for simple tasks such as stripping an analytics cookie it's workable but for anything more serious you'd want something like
https://github.com/lkarsten/libvmod-cookie
link