【问题标题】:Does nginx cache my responses?nginx 会缓存我的响应吗?
【发布时间】:2012-11-30 23:25:06
【问题描述】:

我使用 Symfony2 和 nginx 作为 http 服务器(我对反向代理了解不多,我只是安装它并没有接触任何东西),没有 Apache 也没有 Varnish。

我需要知道 nginx 是否正在缓存我发送的带有正确标头的响应,例如 public、max-age 和 s-max-age,或者我必须向堆栈添加其他内容,例如 Varnish。

我在某处读到,如果您添加 Varnish,您将不得不添加其他内容,用于 gzip 压缩。所以它会是 nginx -> Varnish -> ???

那么 nginx 缓存吗?我该如何检查?我在 nginx 日志上做了grep cache,什么也没找到。

【问题讨论】:

    标签: symfony nginx symfony-2.1


    【解决方案1】:

    【讨论】:

    • 非常感谢,我会试试的。
    猜你喜欢
    • 2021-10-21
    • 2016-05-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-20
    • 2021-07-25
    • 1970-01-01
    相关资源
    最近更新 更多