Skip to content

Commit 4f9443d

Browse files
authored
Remove set and add link (shopware#1386)
1 parent e84db68 commit 4f9443d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

guides/hosting/infrastructure/reverse-http-cache.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ sub vcl_backend_response {
215215
beresp.http.Cache-Control ~ "private"
216216
) {
217217
set beresp.ttl = 0s;
218-
set beresp.http.X-Cacheable = "NO:Cache-Control=private";
219218
set beresp.uncacheable = true;
220219
return (deliver);
221220
}
@@ -230,7 +229,6 @@ sub vcl_backend_response {
230229
231230
# Save the bereq.url so bans work efficiently
232231
set beresp.http.x-url = bereq.url;
233-
set beresp.http.X-Cacheable = "YES";
234232
235233
# Remove the exact PHP Version from the response for more security
236234
unset beresp.http.x-powered-by;
@@ -417,7 +415,6 @@ sub vcl_backend_response {
417415
beresp.http.Cache-Control ~ "private"
418416
) {
419417
set beresp.ttl = 0s;
420-
set beresp.http.X-Cacheable = "NO:Cache-Control=private";
421418
set beresp.uncacheable = true;
422419
return (deliver);
423420
}
@@ -432,7 +429,6 @@ sub vcl_backend_response {
432429
433430
# Save the bereq.url so bans work efficiently
434431
set beresp.http.x-url = bereq.url;
435-
set beresp.http.X-Cacheable = "YES";
436432
437433
# Remove the exact PHP Version from the response for more security
438434
unset beresp.http.x-powered-by;
@@ -649,7 +645,6 @@ sub vcl_backend_response {
649645
beresp.http.Cache-Control ~ "private"
650646
) {
651647
set beresp.ttl = 0s;
652-
set beresp.http.X-Cacheable = "NO:Cache-Control=private";
653648
set beresp.uncacheable = true;
654649
return (deliver);
655650
}
@@ -664,7 +659,6 @@ sub vcl_backend_response {
664659
665660
# Save the bereq.url so bans work efficiently
666661
set beresp.http.x-url = bereq.url;
667-
set beresp.http.X-Cacheable = "YES";
668662
669663
# Remove the exact PHP Version from the response for more security
670664
unset beresp.http.x-powered-by;
@@ -732,6 +726,8 @@ if (obj.hits > 0) {
732726
#set resp.http.X-Cache-Hits = obj.hits;
733727
```
734728

729+
For more details, please refer to the [Varnish documentation](https://www.varnish-software.com/developers/tutorials/logging-cache-hits-misses-varnish/) on logging cache hits and misses.
730+
735731
## Configure Fastly
736732

737733
Fastly is supported since Shopware 6.4.11.0 is out-of-the-box with some configurations. To enable it, we need to create a new file in `config/packages/storefront.yaml`

0 commit comments

Comments
 (0)