litespeedtech / litespeedtech/lscache_wp

Vary cookies only available with OLS?

Open
#414 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

The [documentation](https://docs.litespeedtech.com/lscache/lscwp/api/#add-to-the-vary-cookies-list) recommends using the `litespeed_vary_cookies` filter to vary cache based on cookies.

Unfortunately, this seems not to work with LiteSpeed enterprise servers:

https://github.com/litespeedtech/lscache_wp/blob/30b85ae31fe407c2eb4f8dfa6c94e86166a16a98/src/htaccess.cls.php#L527-L530

Is this expected to be supported in a future version?

The issue in my case is that the cookie name is dynamic. Luckily, is it not changing very often, so my workaround now is to update the `Do Not Cache Cookies` option.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked documentation for the litespeed_vary_cookies filter and inspect src/htaccess.cls.php around lines 527-530. Compare the documented behavior with LiteSpeed Enterprise handling, including the dynamic cookie-name case; the work is done when support is implemented or the limitation and supported workaround are clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.