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
This package allows you to easily cache responses as static files on disk for lightning fast page loads.
4
9
5
10
-[Introduction](#introduction)
@@ -114,7 +119,7 @@ To make sure you don't commit your locally cached files to your git repository,
114
119
### Using the middleware
115
120
116
121
> **Note:** If you've added the middleware to the global `web` group, then all successful GET requests will automatically be cached. No need to put the middleware again directly on the route.
117
-
>
122
+
>
118
123
> If you instead registered it as a route middleware, you should use the middleware on whichever routes you want to be cached.
119
124
120
125
To cache the response of a given request, use the `page-cache` middleware:
@@ -185,3 +190,12 @@ By default, all GET requests with a 200 HTTP response code are cached. If you wa
185
190
## License
186
191
187
192
The Page Cache package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
0 commit comments