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
{{ message }}
This repository was archived by the owner on May 28, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: docker/varnish/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ if (req.url ~ "^\/api\/catalog\/") {
67
67
```
68
68
69
69
I am caching request that starts with `/api/catalog/`. As you can see I cache both POST and GET.
70
-
This is because in my project I use huge ES requests to compute Facted Filters. I would exceed HTTP GET limit.
70
+
This is because in my project I use huge ES requests to compute Faceted Filters. I would exceed HTTP GET limit.
71
71
72
72
Thanks to this line and `bodyaccess`, I can distinguish requests to the same URL by their body!
73
73
```vcl
@@ -98,7 +98,7 @@ sub vcl_backend_fetch {
98
98
99
99
100
100
### Caching Stock
101
-
It might be a good idea to cache stock requests if you check it lifetime in VSF-PWA in visiblityChanged hook (product listing).
101
+
It might be a good idea to cache stock requests if you check it often (filterUnavailableVariants, configurableChildrenStockPrefetchDynamic) in VSF-PWA in visiblityChanged hook (product listing).
102
102
In one project when I have slow Magento - it reduced Time-To-Response from ~2s to ~70ms.
103
103
104
104
```vcl
@@ -136,7 +136,7 @@ to around ~50ms.
136
136
How to do that?
137
137
Inside `vcl_recv` add:
138
138
```vcl
139
-
// As in my case I want to cache only GET requests
139
+
# As in my case I want to cache only GET requests
140
140
if (req.method == "GET") {
141
141
# Countries for storecode GET - M2 - /directory/countries
0 commit comments