HTTP response caching

后端 未结 3 1973
故里飘歌
故里飘歌 2020-12-02 23:29

I want to ensure that my servet\'s response is never cached by the broswer, such that even if two identical requests are made (a nanosecond apart), the server is always cont

3条回答
  •  长情又很酷
    2020-12-03 00:01

    According to microsoft, these headers are required for IE:

    • Cache-Control;
    • Pragma;
    • Expires (that should be negative);

    Example:

    Pragma: no-cache
    Cache-Control: no-cache
    Expires: -1
    

提交回复
热议问题