Skip to content

Commit

Permalink
Merge pull request #1487 from scireum/ili/OX-11230-redirect-nocache
Browse files Browse the repository at this point in the history
Sets cache headers for non cached redirect URLs
  • Loading branch information
idlira authored Dec 6, 2024
2 parents dac3353 + 3799199 commit 06e9569
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/sirius/web/http/Response.java
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,8 @@ public void redirectPermanently(String url) {
private void performRedirect(String url, HttpResponseStatus status) {
if (cacheSeconds == null || cacheSeconds == 0) {
userMessagesCache.cacheUserMessages(webContext);
} else {
}
if (cacheSeconds != null) {
setDateAndCacheHeaders(System.currentTimeMillis(), cacheSeconds, isPrivate);
}

Expand Down

0 comments on commit 06e9569

Please sign in to comment.