Skip to content

Commit 0eeb5ba

Browse files
committed
Fix bug with non GET requests getting cached
1 parent a420902 commit 0eeb5ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

varnish/default.vcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ sub vcl_recv {
2828
return(synth(405, "Not allowed"));
2929
}
3030
return(purge);
31-
} elseif (req.method == "POST") {
32-
// Don't cache post requests
31+
} elseif (req.method != "GET") {
32+
// Don't cache non-GET requests
3333
return(pass);
3434
}
3535

0 commit comments

Comments
 (0)