You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: guides/hosting/infrastructure/reverse-http-cache.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,6 @@ sub vcl_backend_response {
215
215
beresp.http.Cache-Control ~ "private"
216
216
) {
217
217
set beresp.ttl = 0s;
218
-
set beresp.http.X-Cacheable = "NO:Cache-Control=private";
219
218
set beresp.uncacheable = true;
220
219
return (deliver);
221
220
}
@@ -230,7 +229,6 @@ sub vcl_backend_response {
230
229
231
230
# Save the bereq.url so bans work efficiently
232
231
set beresp.http.x-url = bereq.url;
233
-
set beresp.http.X-Cacheable = "YES";
234
232
235
233
# Remove the exact PHP Version from the response for more security
236
234
unset beresp.http.x-powered-by;
@@ -417,7 +415,6 @@ sub vcl_backend_response {
417
415
beresp.http.Cache-Control ~ "private"
418
416
) {
419
417
set beresp.ttl = 0s;
420
-
set beresp.http.X-Cacheable = "NO:Cache-Control=private";
421
418
set beresp.uncacheable = true;
422
419
return (deliver);
423
420
}
@@ -432,7 +429,6 @@ sub vcl_backend_response {
432
429
433
430
# Save the bereq.url so bans work efficiently
434
431
set beresp.http.x-url = bereq.url;
435
-
set beresp.http.X-Cacheable = "YES";
436
432
437
433
# Remove the exact PHP Version from the response for more security
438
434
unset beresp.http.x-powered-by;
@@ -649,7 +645,6 @@ sub vcl_backend_response {
649
645
beresp.http.Cache-Control ~ "private"
650
646
) {
651
647
set beresp.ttl = 0s;
652
-
set beresp.http.X-Cacheable = "NO:Cache-Control=private";
653
648
set beresp.uncacheable = true;
654
649
return (deliver);
655
650
}
@@ -664,7 +659,6 @@ sub vcl_backend_response {
664
659
665
660
# Save the bereq.url so bans work efficiently
666
661
set beresp.http.x-url = bereq.url;
667
-
set beresp.http.X-Cacheable = "YES";
668
662
669
663
# Remove the exact PHP Version from the response for more security
670
664
unset beresp.http.x-powered-by;
@@ -732,6 +726,8 @@ if (obj.hits > 0) {
732
726
#set resp.http.X-Cache-Hits = obj.hits;
733
727
```
734
728
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
+
735
731
## Configure Fastly
736
732
737
733
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