From b7c7608d967f810377957e471819d1728f4db2a9 Mon Sep 17 00:00:00 2001 From: Jason Freeberg Date: Mon, 28 Dec 2020 12:00:48 -0800 Subject: [PATCH] Fix cache key Was using the request path, not the query string --- .../main/java/org/gaucho/courses/controller/service/Proxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/org/gaucho/courses/controller/service/Proxy.java b/backend/src/main/java/org/gaucho/courses/controller/service/Proxy.java index 47a6e0c..ba80876 100644 --- a/backend/src/main/java/org/gaucho/courses/controller/service/Proxy.java +++ b/backend/src/main/java/org/gaucho/courses/controller/service/Proxy.java @@ -28,7 +28,7 @@ public class Proxy { * @param request ServletRequest object * @return The response from SERVER. */ - @Cacheable(value="remote-entity", key="#request.getRequestURI()") + @Cacheable(value="remote-entity", key="#request.getQueryString()") public Object proxyRequest(HttpServletRequest request) { URI uri;