Webmasters who wish to serve different content for different browsers should use the ""Vary:"" header to specify the set of request-header fields used in making the determination.
If you are using your application to serve different code to different useragents, we recommend you set your web server to respond with the ""Vary:"" Header. This will ensure that all HTTP/1.1 Proxy servers will serve the proper content to your users. If you are simply using JavaScript after the page has been downloaded then the actual page downloaded will be the same for each useragent.
If, for example, you wish to serve content in different languages, use ""Vary: Accept-Language"". When serving content based on web browser, use ""Vary: User-Agent"". Section 14.44 of the HTTP/1.1 RFC details the use of the ""Vary:"" header.
Sample NSAPI code for Netscape Enterprise Server 3.x (NT):
/* ******************************
* rheader.c ---> rheader.dll
* ******************************
*
* This script sets a Response Header for the specified object.
*
* At the beginning of obj.conf add:
* Init fn=""load-modules"" shlib=""rheader.dll"" funcs=""rheader""
*
* In an