GET parameter that causes the WAYF to bypass caching.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 6 Mar 2003 14:42:07 +0000 (14:42 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Thu, 6 Mar 2003 14:42:07 +0000 (14:42 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@544 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/wayf/WayfService.java

index 2da9c75..ef2c4c7 100755 (executable)
@@ -108,7 +108,6 @@ public class WayfService extends HttpServlet {
                        InputStream is = new ShibResource(wayfConfigFileLocation, this.getClass()).getInputStream();
                        WayfConfigDigester digester = new WayfConfigDigester();
                        digester.setValidating(true);
-                       System.err.println(is);
                        config = (WayfConfig) digester.parse(is);
 
                } catch (SAXException se) {
@@ -253,7 +252,9 @@ public class WayfService extends HttpServlet {
                if (handleService == null) {
                        handleLookup(req, res);
                } else {
-                       WayfCacheFactory.getInstance(config.getCacheType(), wOptions).addHsToCache(handleService, req, res);
+                       if (req.getParameter("noCache") != null && !(req.getParameter("noCache").equalsIgnoreCase("TRUE"))) {
+                               WayfCacheFactory.getInstance(config.getCacheType(), wOptions).addHsToCache(handleService, req, res);
+                       }
                        forwardToHS(req, res, handleService);
                }