Skip to content

findxc/http-cache-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-cache-example

使用 NGINX 和 Docker 来在本地测试 HTTP 缓存设置的效果。

启动项目流程:

1. 本地下载docker

2. 启动docker软件

3. 项目路径执行命令

在项目路径下执行 docker compose up -d 启动服务,然后访问 http://localhost:8080 即可。

如果修改了 conf.d ,需要 docker compose restart

销毁服务的命令是 docker compose down ,可以通过 docker compose -h 查看所有命令。

相关资料:

About

use nginx to learn how http cache works

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published