Forum Discussion

Thomas_Schaefer's avatar
Thomas_Schaefer
Icon for Nimbostratus rankNimbostratus
May 04, 2009

Having trouble with ESI headers

We are trying to use ESI here and I was a bit unsure of one point of the configuration. The manual makes it appear that the web server must always respond with a Surrogate-Control header. Is this true? Basically, I want to store a fragment on the host and have the esi tag reference load it on the way out (assembly).

 

 

Thanks,

 

 

Tom Schaefer
  • Hi Tom,

     

     

    Yes the Surrogate-Control header is required when dealing with ESI. This lets WebAccelerator know that the content being received contains ESI tags and must be assembled on the way out. Without the Surrogate-Control headers the ESI tags will be passed as is to the client and the page will not be rendered properly.

     

     

    Dawn
  • Thank you for the reply. Just so I am clear, this is something that the web server should always set or only when it sees the Surrogate header in the request. I am not using Apache and I cannot tell my web server to add that, so I suspect I may need to use an IRule to do that (depending upon where the request is in the chain).

     

     

    I can understand if the request goes to an application as it can set any header it wants, but in a static page generated from the web server file system, I hope that an iRule adding the header is sufficient.

     

     

    Thanks,

     

     

    Tom Schaefer