Apache/Tomcat error - wrong pages being delivered

后端 未结 11 879
借酒劲吻你
借酒劲吻你 2020-12-09 05:51

This error has been driving me nuts. We have a server running Apache and Tomcat, serving multiple different sites. Normally the server runs fine, but sometimes an error happ

11条回答
  •  囚心锁ツ
    2020-12-09 06:23

    Try this:

    response.setHeader("Cache-Control", "no-cache"); //HTTP 1.1
    response.setHeader("Pragma", "no-cache"); //HTTP 1.0
    response.setDateHeader("Expires", 0); //prevents caching at the proxy server
    

提交回复
热议问题