https://github.com/akellbl4/cache-proxy
https://github.com/akellbl4/cache-proxy
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/akellbl4/cache-proxy
- Owner: akellbl4
- License: mit
- Created: 2021-01-25T20:16:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-25T21:02:03.000Z (almost 4 years ago)
- Last Synced: 2025-04-10T06:17:01.768Z (about 1 year ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cache shared data for Next.js
This repo has two approatches to cache data before you start build your Next.js app
### Disk cache server
Run this command for caching all data on disk
```
$ npm run cache-requests
```
Start server which serve cached data
```
$ npm run cache-server
```
### In-memory cache server
This command runs server which requests data one time and returns it
```
$ npm run proxy-cache-server
```