Chrome browser is not sending if-modified-since header to server

前端 未结 6 1633
一整个雨季
一整个雨季 2020-12-09 14:45

I have these headers being sent to the client by the server:

Cache-Control:private
Connection:keep-alive
Content-Encoding:gzip
Content-Type:text/html
Date:Su         


        
6条回答
  •  鱼传尺愫
    2020-12-09 15:25

    In my experience you need more than just the "Private" Cache-Control header. You need either "Max-Age" or "Expires" to force Chrome to revalidate content with the server.

    Remember that revalidation will only start after these time values have elapsed, so they may need to be set to a small value.

提交回复
热议问题