Skip to content

Commit

Permalink
fix: undo filter order again
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Nov 5, 2024
1 parent 82bbe51 commit bc9a9fc
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,10 @@ protected void doFilterInternal(
String uri = request.getRequestURI();
Matcher m = HTML_PATH_PATTERN.matcher(uri);

// Do rest of filters before adding no-cache headers, so they can be added
// as late as possible in the chain
chain.doFilter(request, response);

if (m.find() && HttpMethod.GET.matches(request.getMethod())) {
ContextUtils.setNoStore(response);
}

chain.doFilter(request, response);
}
}

0 comments on commit bc9a9fc

Please sign in to comment.