Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 900 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 900 Bytes

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 查看所有命令。

相关资料: