✏️ 正在编辑: guest.js
路径:
/usr/src/litespeed-wp-plugin/6.3.0.1/litespeed-cache/assets/js/guest.js
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
var litespeed_vary = document.cookie.replace(/(?:(?:^|.*;\s*)_lscache_vary\s*\=\s*([^;]*).*$)|^.*$/, '$1'); if (!litespeed_vary) { // Note: as the vary may be changed in Login Cookie option, even the visitor doesn't have this cookie, it doesn't mean the visitor doesn't have the vary, so still need PHP side to decide if need to set vary or not. fetch('litespeed_url', { method: 'POST', cache: 'no-cache', redirect: 'follow', }) .then(response => response.json()) .then(data => { console.log(data); if (data.hasOwnProperty('reload') && data.reload == 'yes') { // Save doc.ref for organic traffic usage sessionStorage.setItem('litespeed_docref', document.referrer); window.location.reload(true); } }); }
💾 保存文件
← 返回文件管理器