From 4d584c9c9bd5c7119bb39c41c03750ddeb757ed9 Mon Sep 17 00:00:00 2001
From: marcmartin13 <87841930+marcmartin13@users.noreply.github.com>
Date: Tue, 25 Oct 2022 13:52:28 +0800
Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Cache=20readme=20and=20docs=20up?=
=?UTF-8?q?date=20(#2169)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Update README.md
* update no-store request directive
added cache status unreachable
* Update cache.go
---
middleware/cache/README.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/middleware/cache/README.md b/middleware/cache/README.md
index 373446486b..638d3d525d 100644
--- a/middleware/cache/README.md
+++ b/middleware/cache/README.md
@@ -2,9 +2,9 @@
Cache middleware for [Fiber](https://github.com/gofiber/fiber) designed to intercept responses and cache them. This middleware will cache the `Body`, `Content-Type` and `StatusCode` using the `c.Path()` (or a string returned by the Key function) as unique identifier. Special thanks to [@codemicro](https://github.com/codemicro/fiber-cache) for creating this middleware for Fiber core!
-Request Directives
-The no-cache request directive will return the up-to-date response but still caches it. You will always get a "miss" cache status.
-The no-store request directive will refrain from caching. You will always get the up-to-date response.
+Request Directives
+`Cache-Control: no-cache` will return the up-to-date response but still caches it. You will always get a `miss` cache status.
+`Cache-Control: no-store` will refrain from caching. You will always get the up-to-date response.
## Table of Contents