varnish-If-Modified-Since
A 伺服器varnish
B 伺服器 nginx
我在B上配置的html過期max-age 5分鐘。
訪問鏈接/index.html.第一次訪問,miss,然後過了5分鐘,也就是過期了。我用curl 指定 If-Modified-Since=上次的Last-Modified,varnish返回304和miss。
後端源B的日誌狀態碼是200,
我的問題是:
1.index.html 並沒有修改,為什麼B不返回304給varnish呢?
2.是不是varnish就不會轉發If-Modified-Since 給B,為什麼不轉發呢
還請明白給講解下,多謝了
《解決方案》
沒有遇到這樣的情況