This is an automated email from the ASF dual-hosted git repository.
cziegeler pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-auth-core.git
The following commit(s) were added to refs/heads/master by this push:
new 7dc3fd5 SLING-10249 : Remove unused cacheControl from
SlingAuthenticator
7dc3fd5 is described below
commit 7dc3fd55f2d01012b9a9a9148953cff5a849683b
Author: Carsten Ziegeler <[email protected]>
AuthorDate: Mon Mar 22 08:06:38 2021 +0100
SLING-10249 : Remove unused cacheControl from SlingAuthenticator
---
.../java/org/apache/sling/auth/core/impl/SlingAuthenticator.java | 9 ---------
1 file changed, 9 deletions(-)
diff --git
a/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java
b/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java
index 6c82065..45ba2e6 100644
--- a/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java
+++ b/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java
@@ -268,9 +268,6 @@ public class SlingAuthenticator implements Authenticator,
/** The name of the impersonation cookie */
private volatile String sudoCookieName;
- /** Cache control flag */
- private volatile boolean cacheControl;
-
/**
* The configured URI suffices indicating a authentication requests and
* requiring redirects and thus returning <code>false</code> from the
@@ -1318,12 +1315,6 @@ public class SlingAuthenticator implements Authenticator,
}
response.addCookie(cookie);
-
- // Tell a potential proxy server that this request is uncacheable
- // due to the Set-Cookie header being sent
- if (this.cacheControl) {
- response.addHeader("Cache-Control", "no-cache=\"Set-Cookie\"");
- }
}
}