Description
The ACO parameter -AllowCacheHeaders tells the Web Agent how to handle cache-related request headers. Specifically, this settings tells the Agent whether or not it should remove the if-modified-since or if-none-match request headers before the Agent passes a request to the web server where it is installed. The action taken by the Web Agent affects whether or not a browser uses cached pages.
Solution
The AllowCacheHeaders attribute tells the Web Agent how to handle cache-related request headers. Specifically, this settings tells the Agent whether or not it should remove the if-modified-since or if-none-match request headers before the Agent passes a request to the web server where it is installed. The action taken by the Web Agent affects whether or not a browser uses cached pages.
************************************************************************* To enable cached headers set the parameter- AllowCacheHeaders=yes in ACO for the WebAgent. *************************************************************************
Steps to validate working of AllowCacheHeaders=yes: ======================
GET http: //www2.netelectronics.com/dummy/hello.html
HTTP/1.1 302 Object Moved Cache-control: no-store Location: http://www2.netelectronics.com:8181/siteminderagent/forms/login.fcc
This is served with an HTTP 200 GET http: //www2.netelectronics.com/dummy/hello.html HTTP/1.1
HTTP/1.1 200 OK Content-Length: 129 Content-Type: text/html Content-Location: http://www2.netelectronics.com/dummy/hello.html
HTTP/1.1 304 Not Modified
Content-Location: http://www2.netelectronics.com/dummy/hello.html
So here we see that subsequent requests to a protected resource are served with an HTTP 304 from the browser's cache.
*************************************************************************** To Disable cached headers set the AllowCacheHeaders=NO in ACO for the WebAgent. ***************************************************************************
Steps to validate working of AllowCacheHeaders=NO:
GET http: //www2.netelectronics.com/dummy/hello.html HTTP/1.1
HTTP/1.1 302 Object Moved Cache-control: no-store Location: http://www2.netelectronics.com:8181/siteminderagent/forms/login.fcc
GET http: //www2.netelectronics.com/dummy/hello.html HTTP/1.1
HTTP/1.1 200 OK Content-Length: 129 Content-Type: text/html Content-Location: http://www2.netelectronics.com/dummy/hello.html
HTTP/1.1 200 OK Content-Length: 129 Content-Type: text/html Content-Location: http://www2.netelectronics.com/dummy/hello.html