Skip to content

Commit

Permalink
cache feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneider4711 committed Jun 15, 2023
1 parent 8e663a0 commit 94140c6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/demo/filter/SecurityFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha

String paramValues = logRequestParams(httpRequest);
checkTime(httpRequest, paramValues);
addAntiCacheHeader(httpRequest, httpResponse);

boolean antiCache = false;
if (antiCache) {
addAntiCacheHeader(httpRequest, httpResponse);
}

String uri = httpRequest.getRequestURI();
if ("/marathon/check".equals(uri)) {
Long checkTime = (Long)httpRequest.getServletContext().getAttribute(CHECK_TIME);
Expand Down

0 comments on commit 94140c6

Please sign in to comment.