Skip to content

Instantly share code, notes, and snippets.

@wutupake
Created March 2, 2016 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wutupake/862ac654f6993720f83c to your computer and use it in GitHub Desktop.
Save wutupake/862ac654f6993720f83c to your computer and use it in GitHub Desktop.
sub vcl_fetch {
# Drop any cookies WordPress (except for wp-login/wp-admin) tries to send back to the client.
if (!(req.url ~ "wp-(login|admin)")) {
unset beresp.http.set-cookie;
}
}
sub vcl_recv {
# Drop any cookies sent to WordPress.
if ( ! ( req.url ~ "wp-(login|admin)" ) ) {
unset req.http.cookie;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment