https://github.com/divedylan/test-http-cache
test http cache control
https://github.com/divedylan/test-http-cache
Last synced: 11 months ago
JSON representation
test http cache control
- Host: GitHub
- URL: https://github.com/divedylan/test-http-cache
- Owner: diveDylan
- Created: 2020-06-20T03:36:32.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-26T15:03:17.000Z (almost 6 years ago)
- Last Synced: 2025-03-28T12:33:03.382Z (about 1 year ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### about deno server
```bash
# install deno
curl -fsSL https://deno.land/x/install/install.sh | sh
#https://drash.land/docs/#/api-reference/http/response
deno run --allow-net --allow-read app.ts
```
### html
```bash
cd public
vim $.html
```
### http
302 redirect
``` ts
// 302 redirect
this.response.headers.set('location', 'http://0.0.0.0:1447')
this.response.status_code = 302
```
### TODO
1、cookie ✅
2、http-cache