Know what is on your site before a plaintiff’s firm does.Free website scanScan Your Site
Log in Sign up Book a demo
Home› Editorial› _lscache_vary cookie
COOKIES

_lscache_vary cookie

The _lscache_vary cookie is a functional cookie used by LiteSpeed Cache to manage caching for different user states on websites.

Mar 8, 2025 1 min read

Know what’s on your site before a plaintiff’s firm does

A free privacy audit shows which cookies, pixels and trackers are running — and which ones commonly appear in privacy claims.

Get My Free Audit

The _lscache_vary cookie is a functional cookie used by LiteSpeed Cache to manage caching for different user states on websites. It serves the following purposes:

  1. Stores the role of a logged-in user

  2. Provides prevention of cached page

  3. Distinguishes between logged-in and non-logged-in users

This cookie is typically set with a 2-day expiration period. It helps the server determine which version of a cached page to serve to a user based on their login status.

The _lscache_vary cookie is essential for the proper functioning of LiteSpeed Cache, especially when dealing with different user roles and logged-in states on websites. It ensures that users receive the appropriate cached content based on their authentication status.

In some cases, such as when Guest Mode is enabled in WordPress, the _lscache_vary cookie may be set even for non-logged-in users to facilitate certain caching features which may cause an issue with users who don’t want cookies on their website and do not have a consent management banner to let users opt-in or opt-out as required by certain laws.

Put this into practice

Turn privacy guidance into working controls.

Captain Compliance helps teams discover tracking technologies, enforce consent, manage privacy requests and document the evidence behind every decision.

Book a demo Run a free scan