macOS Safari caching response, while headers specify no caching

前端 未结 1 1265
醉梦人生
醉梦人生 2021-01-18 20:09

A response from the server to a GET request has the following headers:

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Pragma: no-cache
Date: T         


        
相关标签:
1条回答
  • 2021-01-18 20:47

    I've had a similar problem (see Safari Caching GET request even with disabled cache). Adding Vary: * forced Safari to stop caching. Nothing else worked, including Vary: Cookie even though cookies changed between requests.

    This answer helped me: https://stackoverflow.com/a/2068353/1364158

    0 讨论(0)
提交回复
热议问题