Revision c17c7081 src/gr/ebs/gss/server/CacheFilter.java

b/src/gr/ebs/gss/server/CacheFilter.java
41 41
 			FilterChain filterChain) throws IOException, ServletException {
42 42
 		HttpServletRequest httpRequest = (HttpServletRequest)request;
43 43
 		String requestURI = httpRequest.getRequestURI();
44
 		String contextPath = httpRequest.getContextPath();
44 45
		if (requestURI.contains(".nocache.")) {
45 46
 			HttpServletResponse httpResponse = (HttpServletResponse)response;
46 47
 			httpResponse.setHeader("Expires", "Fri, 01 Jan 1990 00:00:00 GMT");
......
50 51
 			long today = new Date().getTime();
51 52
 			HttpServletResponse httpResponse = (HttpServletResponse)response;
52 53
 			httpResponse.setDateHeader("Expires", today+31536000000L);
53
 		} else {
54
 		} else if (!requestURI.startsWith(contextPath + "/nonce") &&
55
 	 				!requestURI.startsWith(contextPath + "/token") &&
56
 	 				!requestURI.startsWith(contextPath + "/login") &&
57
 	 				!requestURI.startsWith(contextPath + "/policy")) {
54 58
 			long today = new Date().getTime();
55 59
 			HttpServletResponse httpResponse = (HttpServletResponse)response;
56 60
 			httpResponse.setDateHeader("Expires", today+3456000000L);

Also available in: Unified diff