Varnish caching based on cookies
Hi guys,
I run a Simple Machines forum and have Varnish in front of it. I'd like to cache all anonymous requests. This should be easy enough as SMF sets a cookie 'SMFCookie132' if you log in. This cookie can be renamed to anything I like. So my question is: How do I configure Varnish to cache for everyone except those with this cookie? Thanks a stack! |
Okay so I've got something that works pretty well. It checks for the SMFCookie132 cookie and, if it finds it, it deletes ALL the cookies. Varnish will serve cached objects if there are no cookies.
Code:
# recv |
All times are GMT -5. The time now is 10:40 PM. |