From 0d6154dd43b535db4cf7365e28c1bbc78a541e9f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20H=C3=BCnig?= <jonas@huenig.name>
Date: Mon, 27 Sep 2021 14:26:56 +0200
Subject: [PATCH] backport  #24353  to 2.3

backports #24353  to Magento 2.3
---
 vendor/magento/module-page-cache/etc/varnish6.vcl | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vendor/magento/module-page-cache/etc/varnish6.vcl b/vendor/magento/module-page-cache/etc/varnish6.vcl
index b43c8a77bca7..14f82dbed3ca 100644
--- a/vendor/magento/module-page-cache/etc/varnish6.vcl
+++ b/vendor/magento/module-page-cache/etc/varnish6.vcl
@@ -23,6 +23,9 @@ acl purge {
 }
 
 sub vcl_recv {
+    if (req.restarts > 0) {
+        set req.hash_always_miss = true;
+    }
     if (req.method == "PURGE") {
         if (client.ip !~ purge) {
             return (synth(405, "Method not allowed"));
