문제

Problem:

  1. UserA and UserB are in a network with server proxy.
  2. UserA opens page "www.myapp.com/initPage.htm".
  3. If UserB opens the same page, then he will see the page with information from UserA.
  4. For the proxy server is the same page so it returns the information it has cached.

More Info:

  1. Each user has different JSESSIONID and stored in the attribute set-cookie of the header response.
  2. The URL is the same for the two users but the information depends on the JSESSIONID.
  3. The proxy server don't stores the JSON calls only HTML pages.
  4. I tried to solve the problem with this solution but did not work.

Architecture:

  1. My application is implemented with Spring Security 3.1 and Struts2.
  2. Work on Apache2 server, which is connected to a Tomcat7 through mod_jk module and configured with "workers.properties" file.

How I can tell the proxy server will never save the HTML page?

Best regards and thanks.

도움이 되었습니까?

해결책

Finally, this solution worked but adding the filter in the first position in the web.xml.

Best regards and thanks.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top