We're testing with http header insertion on our ACE-modules to log the client's ip-address.
I have made a webpage which displays the added header.
The insertion seems to work okay, but the header is only inserted in the first request within a one-minute period.
When I refresh the page within a minute, the header is not added.
When I wait a minute or longer before refreshing, the header is added.
When I open the page within a minute on a different machine, the header is added so it's obviously related to the user's session.
I can imagine this is done to reduce the ACE's workload, but is there some way to change this behaviour?
switch/User1(config)# parameter-map type http Rebalance
switch/User1(config-parammap-http)# header ?
modify Modify header
switch/User1(config-parammap-http)# header modify ?
per-request This is applicable for every request/response
switch/User1(config-parammap-http)# header modify per-request
That's the paramter-map that you need to insert the header in every request.
The reason for the 1 minute is that your browser or your server keeps the connection open for that long.
If a new request (refresh) comes in during that period of time, we can reuse the existing connection.
ACE without the parameter-map does not add a new header.
After the 1 minute timeout (on the server or client - not ace) the connection is closed and when you do a refresh a new connection is open.
Since this is a new connection, ACE will insert the header.
The solution is the parameter-map above.