litespeedtech / litespeedtech/lscache_wp

Issue with amp pages

Open
#377 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

Hi, i'm using the version v4.2-rc3 and after activation i have AMP page broken. Seems that the plugin is appending at end of html the script below.

var litespeed_vary=document.cookie.replace(/(?:(?:^|.*;\s*)_lscache_vary\s*\=\s*([^;]*).*$)|^.*$/,"$1");litespeed_vary||fetch("https://fattidigossip.com/wp-content/plugins/litespeed-cache/guest.vary.php",{method:"POST",cache:"no-cache",redirect:"follow"}).then(e=>e.json()).then(e=>{console.log(e),e.hasOwnProperty("reload")&&"yes"==e.reload&&window.location.reload(!0)});

How i can solve it?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the broken AMP page with LiteSpeed Cache v4.2-rc3 enabled and inspect the generated HTML near the appended guest.vary.php script. Confirm the cause and verify that the AMP output is valid and no longer broken after the issue is addressed.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.