Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/richie-south/nextjs-cache
https://github.com/richie-south/nextjs-cache
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/richie-south/nextjs-cache
- Owner: richie-south
- Created: 2023-07-03T09:18:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-20T06:56:55.000Z (9 months ago)
- Last Synced: 2024-02-20T07:44:00.607Z (9 months ago)
- Language: TypeScript
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
1. start api server `npm run api`
2. start next `npm run dev`¨Cache is set to 5secs.
Reloading page after cache expiring will yield results below.**On `/`**
i get 3 requests to my api server
```
"GET /data.json?id=6" "undici"
"GET /data.json?id=6" "undici"
"GET /data.json?id=6" "undici"
```**On /todo**
i get 5 requests to my api server
```
"GET /data.json?id=6" "undici"
"GET /data.json?id=6" "undici"
"GET /data.json?id=6" "undici"
"GET /data.json?id=6" "undici"
"GET /data.json?id=6" "undici"
```