[cpp-sp] branch main updated: SSPCPP-938 - IIS Module not setting Cache-Control
Scott Cantor
cantor.2 at osu.edu
Fri Jul 16 13:22:55 UTC 2021
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=969d25df2d9112d5091d0253896000f08869ced2
The following commit(s) were added to refs/heads/main by this push:
new 969d25df SSPCPP-938 - IIS Module not setting Cache-Control
969d25df is described below
commit 969d25df2d9112d5091d0253896000f08869ced2
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Jul 16 09:21:57 2021 -0400
SSPCPP-938 - IIS Module not setting Cache-Control
https://issues.shibboleth.net/jira/browse/SSPCPP-938
---
iis7_shib/IIS7Request.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/iis7_shib/IIS7Request.cpp b/iis7_shib/IIS7Request.cpp
index 0f1cbd92..9d381591 100644
--- a/iis7_shib/IIS7Request.cpp
+++ b/iis7_shib/IIS7Request.cpp
@@ -428,6 +428,8 @@ void IIS7Request::setResponseHeader(const char* name, const char* value, bool re
long IIS7Request::sendRedirect(const char* url)
{
HTTPResponse::sendRedirect(url);
+ setResponseHeader("Expires", "Wed, 01 Jan 1997 12:00:00 GMT", true);
+ setResponseHeader("Cache-Control", "private,no-store,no-cache,max-age=0", true);
HRESULT hr = m_response->Redirect(url);
if (FAILED(hr)) {
logFatal("Redirect", hr);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list