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: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,11 +22,12 @@
22
22
23
23
Stalier is cache strategy middleware controled by your frontend by using `x-stalier-cache-control` header.
24
24
This means that instead of your backend sending `Cache-Control` header to your browser for your browser to cache the returned data, your frontend will send the header `X-Stalier-Cache-Control` to your backend for it to cache the returned data from your source of truth.
25
-
It is an advanced middleware that with support for stale-while-revalidate strategy.
26
-
Stalier will act as a proxy for your routes and cache the response if front-end asks for it.
27
-
Since it's embedded in your backend, it's much more efficient than using a separate proxy.
28
-
It implements part of RFC7234 and RFC5861 but on the backend. It does not use `cache-control` since the cache is controlled by the frontend.
29
-
If you want both your browser and backend to cache the responses, you can use `x-stalier-cache-control` for requests and `cache-control` for responses at the same time.
25
+
26
+
- It is an advanced middleware with support for stale-while-revalidate strategy.
27
+
- Stalier will act as a proxy that caches the response if it sees a `X-Stalier-Cache-Control` header.
28
+
- Since it's embedded in your backend, it's much more efficient than using a separate proxy.
29
+
- It implements part of RFC7234 and RFC5861 but on the backend. It does not use `cache-control` since the cache is controlled by the frontend.
30
+
- If you want both your browser and backend to cache the responses, you can use `x-stalier-cache-control` for requests and `cache-control` for responses at the same time.
0 commit comments