The caffeine in coffee is thought to increase CSF production, thereby helping to reduce headache severity in those with spinal CSF leaks.