Vary Http Header

Vary Http Header is a type of header returned by the server and is a mechanism for notifying the content such as
“This HTML changes depending on the user agent “.

Vary Http Header is mainly used when changing the HTML of the smartphone and PC with the same URL, and it is possible to notify not only the user agent but also the change with the cookie.

As a simple usage, you can also add the following description to .htaccess .
Example: Header set Vary User-Agent ( when switching with the user agent )

Leave a Reply

Your email address will not be published. Required fields are marked *