|  | @@ -23,6 +23,7 @@ import org.springframework.http.MediaType;
 | 
	
		
			
				|  |  |  import org.springframework.security.config.annotation.web.HttpSecurityBuilder;
 | 
	
		
			
				|  |  |  import org.springframework.security.config.annotation.web.builders.HttpSecurity;
 | 
	
		
			
				|  |  |  import org.springframework.security.web.savedrequest.HttpSessionRequestCache;
 | 
	
		
			
				|  |  | +import org.springframework.security.web.savedrequest.NullRequestCache;
 | 
	
		
			
				|  |  |  import org.springframework.security.web.savedrequest.RequestCache;
 | 
	
		
			
				|  |  |  import org.springframework.security.web.savedrequest.RequestCacheAwareFilter;
 | 
	
		
			
				|  |  |  import org.springframework.security.web.util.matcher.AndRequestMatcher;
 | 
	
	
		
			
				|  | @@ -85,6 +86,12 @@ public final class RequestCacheConfigurer<H extends HttpSecurityBuilder<H>> exte
 | 
	
		
			
				|  |  |  		return this;
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +	@Override
 | 
	
		
			
				|  |  | +	public H disable() {
 | 
	
		
			
				|  |  | +		getBuilder().setSharedObject(RequestCache.class, new NullRequestCache());
 | 
	
		
			
				|  |  | +		return super.disable();
 | 
	
		
			
				|  |  | +	}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public void init(H http) throws Exception {
 | 
	
		
			
				|  |  |  		http.setSharedObject(RequestCache.class, getRequestCache(http));
 |