litespeedtech/openlitespeed

webp replacment problem

AkramiPro opened this issue · 2 comments

Hi. thank you for your great work at litespeed plugin.
As of admin i need to be able to see output of some settings with admin access.
but some options only applied for cached pages.
and i cannot see them until i logged out.
but debugging without admin is very difficult.
like webp replacement and lazy load output.
image
i know that you cannot change the code for some good reason and logics that i know.
so i came with a new solution
i think you can add debugging mode option that only work with admin users and special params in url
we can control which options apply in debugging mode by passing params like that:
https://site.com/?lsp_debug=true&lsp_lazy_load=true&lsap_minify_html=false&lsp_web_replacement=true

so we can see options output and debug easily 😊

you should post this on LSCWP repo instead of OLS repo

and for your screenshot , you can enable private cache and set optimize for guest only to OFF to see the optm effect for login/admin user.

ok thank you