How to configure the cache to handle the Vary Header ?
Hi There,
The tricky thing is that the content of the answers (XML documents) provided to the clients depends from the Accept and Accept-Language HTTP Headers value that was passed to the server by the client.
One quick example should help to clarify:
but the same URL
http://192.168.1.1/docs/DOC_1 with the two headers= ‘Accept: notice=branch’ and 'Accept-Language: eng' returns an XML document of type Notice=branch in english
To help the cache module to serve the right content to the clients, the JBOSS needs to add the following Header in its HTTP Responses:
“Vary: Accept,Accept-Language”
Unfortunately, it seems that the Web Accelerator module doesn’t take in account this Vary Header and may serve the wrong content to the client (the branch notice instead of the object notice or vice-versa)…
Any ideas how to configure the WAM to handle correctly the Vary Header ?