Skip to content

Commit

Permalink
📝 Cache readme and docs update (#2169)
Browse files Browse the repository at this point in the history
* Update README.md

* update no-store request directive

added cache status unreachable

* Update cache.go
  • Loading branch information
marcmartin13 committed Oct 25, 2022
1 parent 156b81c commit 4d584c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions middleware/cache/README.md
Expand Up @@ -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<br>
`Cache-Control: no-cache` will return the up-to-date response but still caches it. You will always get a `miss` cache status.<br>
`Cache-Control: no-store` will refrain from caching. You will always get the up-to-date response.

## Table of Contents

Expand Down

0 comments on commit 4d584c9

Please sign in to comment.