Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit f916cc7

Browse files
author
Fifciuu
committed
Readme fixes
1 parent 5774173 commit f916cc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docker/varnish/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ if (req.url ~ "^\/api\/catalog\/") {
6767
```
6868

6969
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.
7171

7272
Thanks to this line and `bodyaccess`, I can distinguish requests to the same URL by their body!
7373
```vcl
@@ -98,7 +98,7 @@ sub vcl_backend_fetch {
9898

9999

100100
### 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).
102102
In one project when I have slow Magento - it reduced Time-To-Response from ~2s to ~70ms.
103103

104104
```vcl
@@ -136,7 +136,7 @@ to around ~50ms.
136136
How to do that?
137137
Inside `vcl_recv` add:
138138
```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
140140
if (req.method == "GET") {
141141
# Countries for storecode GET - M2 - /directory/countries
142142
if (req.url ~ "^\/api\/ext\/directory\/") {

0 commit comments

Comments
 (0)