From 8087cde62895e6f9339aa4d8f2d23875034c92fc Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Fri, 27 Sep 2013 17:10:42 -0500 Subject: [PATCH] SEC-2331: Include Expires: 0 in xsd and appendix --- .../springframework/security/config/spring-security-3.2.rnc | 4 ++-- .../springframework/security/config/spring-security-3.2.xsd | 3 ++- docs/manual/src/docbook/appendix-namespace.xml | 6 +++--- docs/manual/src/docbook/namespace-config.xml | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/config/src/main/resources/org/springframework/security/config/spring-security-3.2.rnc b/config/src/main/resources/org/springframework/security/config/spring-security-3.2.rnc index c030000ef1..183440774b 100644 --- a/config/src/main/resources/org/springframework/security/config/spring-security-3.2.rnc +++ b/config/src/main/resources/org/springframework/security/config/spring-security-3.2.rnc @@ -746,7 +746,7 @@ hsts-options.attlist &= attribute request-matcher-ref { xsd:token }? cache-control = - ## Adds Cache-Control no-cache, no-store, must-revalidate and Pragma no-cache every URL + ## Adds Cache-Control no-cache, no-store, must-revalidate, Pragma no-cache, and Expires 0 for every request element cache-control {empty} frame-options = @@ -818,4 +818,4 @@ position = ## The explicit position at which the custom-filter should be placed in the chain. Use if you are replacing a standard filter. attribute position {named-security-filter} -named-security-filter = "FIRST" | "CHANNEL_FILTER" | "SECURITY_CONTEXT_FILTER" | "CONCURRENT_SESSION_FILTER" | "WEB_ASYNC_MANAGER_FILTER" | "HEADERS_FILTER" | "CSRF_FILTER" | "LOGOUT_FILTER" | "X509_FILTER" | "PRE_AUTH_FILTER" | "CAS_FILTER" | "FORM_LOGIN_FILTER" | "OPENID_FILTER" | "LOGIN_PAGE_FILTER" | "DIGEST_AUTH_FILTER" | "BASIC_AUTH_FILTER" | "REQUEST_CACHE_FILTER" | "SERVLET_API_SUPPORT_FILTER" | "JAAS_API_SUPPORT_FILTER" | "REMEMBER_ME_FILTER" | "ANONYMOUS_FILTER" | "SESSION_MANAGEMENT_FILTER" | "EXCEPTION_TRANSLATION_FILTER" | "FILTER_SECURITY_INTERCEPTOR" | "SWITCH_USER_FILTER" | "LAST" \ No newline at end of file +named-security-filter = "FIRST" | "CHANNEL_FILTER" | "SECURITY_CONTEXT_FILTER" | "CONCURRENT_SESSION_FILTER" | "WEB_ASYNC_MANAGER_FILTER" | "HEADERS_FILTER" | "CSRF_FILTER" | "LOGOUT_FILTER" | "X509_FILTER" | "PRE_AUTH_FILTER" | "CAS_FILTER" | "FORM_LOGIN_FILTER" | "OPENID_FILTER" | "LOGIN_PAGE_FILTER" | "DIGEST_AUTH_FILTER" | "BASIC_AUTH_FILTER" | "REQUEST_CACHE_FILTER" | "SERVLET_API_SUPPORT_FILTER" | "JAAS_API_SUPPORT_FILTER" | "REMEMBER_ME_FILTER" | "ANONYMOUS_FILTER" | "SESSION_MANAGEMENT_FILTER" | "EXCEPTION_TRANSLATION_FILTER" | "FILTER_SECURITY_INTERCEPTOR" | "SWITCH_USER_FILTER" | "LAST" diff --git a/config/src/main/resources/org/springframework/security/config/spring-security-3.2.xsd b/config/src/main/resources/org/springframework/security/config/spring-security-3.2.xsd index 007ec1d26a..81f53a76fb 100644 --- a/config/src/main/resources/org/springframework/security/config/spring-security-3.2.xsd +++ b/config/src/main/resources/org/springframework/security/config/spring-security-3.2.xsd @@ -2314,7 +2314,8 @@ - Adds Cache-Control no-cache, no-store, must-revalidate and Pragma no-cache every URL + Adds Cache-Control no-cache, no-store, must-revalidate, Pragma no-cache, and Expires 0 for + every request diff --git a/docs/manual/src/docbook/appendix-namespace.xml b/docs/manual/src/docbook/appendix-namespace.xml index c1c9fb65a2..22aeb85bea 100644 --- a/docs/manual/src/docbook/appendix-namespace.xml +++ b/docs/manual/src/docbook/appendix-namespace.xml @@ -265,7 +265,7 @@ It enables easy configuration for several headers and also allows for setting custom headers through the header element. - Cache-Control and Pragma - Can be set using the + Cache-Control, Pragma, and Expires - Can be set using the cache-control element. This ensures that the browser does not cache your secured pages. Strict-Transport-Security - Can be set using the @@ -306,8 +306,8 @@
<literal><cache-control></literal> - Adds Cache-Control and Pragma headers to ensure that the - browser does not cache your secured pages. + Adds Cache-Control, Pragma, and Expires + headers to ensure that the browser does not cache your secured pages.
Parent Elements of <literal><cache-control></literal> diff --git a/docs/manual/src/docbook/namespace-config.xml b/docs/manual/src/docbook/namespace-config.xml index 100f25c302..a5cea5c642 100644 --- a/docs/manual/src/docbook/namespace-config.xml +++ b/docs/manual/src/docbook/namespace-config.xml @@ -642,7 +642,7 @@ List<OpenIDAttribute> attributes = token.getAttributes();The ... - +