Title: LiteSpeed Cache Image Optimization
Last modified: November 7, 2017

---

# LiteSpeed Cache Image Optimization

 *  Resolved [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/)
 * Hello,
 * I am using the latest version of the plugin (v1.6.2.1). The LiteSpeed server 
   version is 5.1.17
 * When I click on the “Request Key” button at the “LiteSpeed Cache Image Optimization”
   page the following error is returned:
 * SAPI Error hash does not match: …….
 * Can you please elaborate on the cause of the issue?
    -  This topic was modified 8 years, 6 months ago by [kioub](https://wordpress.org/support/users/kioub/).
    -  This topic was modified 8 years, 6 months ago by [kioub](https://wordpress.org/support/users/kioub/).

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/litespeed-cache-image-optimization/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/litespeed-cache-image-optimization/page/2/?output_format=md)

 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9659544)
 * Can you post the full error here? It should be two hash strings within your `....`
 *  Thread Starter [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9659624)
 * Thank you for the quick response.
 * The full error is shown below (hash changes every time I try to connect).
 * SAPI Error hash does not match: xWrVVbJlfEJHuAtv
 * To my understanding this is only one hashcode.
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9659650)
 * Can you do it again and paste the new error now?
 * Thats fine even it changed. Its supposed to change each time.
 *  Thread Starter [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9659673)
 * The new message is the one shown below:
 * SAPI Error hash does not match: ClientCB[] Server[ef4zzkWQ16aIQveZ]
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9659699)
 * Please turn on debug log and send a request again. After you send a request there
   should be a callback log. Can you paste it here?
 *  Thread Starter [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9659823)
 * Hello, I have enabled “Advanced” debug level also. Below are the results:
 * 11/07/17 18:56:08.906 [162.158.90.208:30761 1 KLo] GET HTTP/1.1 /wp-admin/admin.
   php
    11/07/17 18:56:08.906 [162.158.90.208:30761 1 KLo] Query String: page=lscache-
   settings&settings-updated=true 11/07/17 18:56:08.906 [162.158.90.208:30761 1 
   KLo] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36(
   KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 11/07/17 18:56:08.906 [
   162.158.90.208:30761 1 KLo] Accept Encoding: gzip 11/07/17 18:56:08.906 [162.158.90.208:
   30761 1 KLo] Cookie _lscache_vary: 8415bdf63c825dedea76f58a34d7d815 11/07/17 
   18:56:08.906 [162.158.90.208:30761 1 KLo] X-LSCACHE: true 11/07/17 18:56:08.906[
   162.158.90.208:30761 1 KLo] LSCACHE_VARY_VALUE: +webp 11/07/17 18:56:08.956 [
   162.158.90.208:30761 1 KLo] Media init 11/07/17 18:56:08.956 [162.158.90.208:
   30761 1 KLo] X Cache_control -> private ( logged in user ) 11/07/17 18:56:08.957[
   162.158.90.208:30761 1 KLo] CDN init 11/07/17 18:56:08.957 [162.158.90.208:30761
   1 KLo] Task init 11/07/17 18:56:08.957 [162.158.90.208:30761 1 KLo] LSCWP_CTRL
   bypassed empty 11/07/17 18:56:09.049 [162.158.90.208:30761 1 KLo] X Cache_control-
   > no Cache ( Admin page ) \ LSC_Control::set_nocache()@229 \ LSC_Admin->admin_init()
   @103 11/07/17 18:56:09.117 [162.158.90.208:30761 1 KLo] Data init 11/07/17 18:
   56:09.117 [162.158.90.208:30761 1 KLo] Data: Checking optm table 11/07/17 18:
   56:09.117 [162.158.90.208:30761 1 KLo] Data: Existed 11/07/17 18:56:09.125 [162.158.90.208:
   30761 1 KLo] CHK html bypass: miss footer const 11/07/17 18:56:09.125 [162.158.90.208:
   30761 1 KLo] not cacheable before ctrl finalize 11/07/17 18:56:09.125 [162.158.90.208:
   30761 1 KLo] get_uid: 1 11/07/17 18:56:09.125 [162.158.90.208:30761 1 KLo] Vary
   role group: administrator 11/07/17 18:56:09.125 [162.158.90.208:30761 1 KLo] 
   Vary show_admin_bar_front: true 11/07/17 18:56:09.125 [162.158.90.208:30761 1
   KLo] Vary admin bar : true 11/07/17 18:56:09.125 [162.158.90.208:30761 1 KLo]
   X Cache_control -> no Cache ( changing default vary 8415bdf63c825dedea76f58a34d7d815
   => admin_bar:1;logged-in:1;role:99 ) \ LSC_Control::set_nocache()@229 \ LSC_Vary-
   >_update_default_vary()@247 \ LSC_Vary->_finalize()@440 11/07/17 18:56:09.125[
   162.158.90.208:30761 1 KLo] X-LiteSpeed-Cache-Control: no-cache 11/07/17 18:56:
   09.127 [162.158.90.208:30761 1 KLo] CHK html bypass: miss footer const 11/07/
   17 18:56:09.127 [162.158.90.208:30761 1 KLo] Media bypass: Not frontend HTML 
   type 11/07/17 18:56:09.127 [162.158.90.208:30761 1 KLo] GUI bypassed by no counter
   11/07/17 18:56:09.127 [162.158.90.208:30761 1 KLo] Optimizer bypass: Not frontend
   HTML type 11/07/17 18:56:09.127 [162.158.90.208:30761 1 KLo] CDN bypass 11/07/
   17 18:56:09.127 [162.158.90.208:30761 1 KLo] End response ——————————————————————————–
 * 11/07/17 18:56:17.495 [141.101.69.79:32267 1 uOR] GET HTTP/1.1 /feed/
    11/07/
   17 18:56:17.495 [141.101.69.79:32267 1 uOR] Query String: 11/07/17 18:56:17.495[
   141.101.69.79:32267 1 uOR] User Agent: Tiny Tiny RSS/1.15.3.4ca621a ([http://tt-rss.org/](http://tt-rss.org/))
   11/07/17 18:56:17.495 [141.101.69.79:32267 1 uOR] Accept Encoding: gzip 11/07/
   17 18:56:17.495 [141.101.69.79:32267 1 uOR] X-LSCACHE: true 11/07/17 18:56:17.545[
   141.101.69.79:32267 1 uOR] Media init 11/07/17 18:56:17.545 [141.101.69.79:32267
   1 uOR] CDN init 11/07/17 18:56:17.545 [141.101.69.79:32267 1 uOR] Task init 11/
   07/17 18:56:17.546 [141.101.69.79:32267 1 uOR] LSCWP_CTRL bypassed empty 11/07/
   17 18:56:17.611 [141.101.69.79:32267 1 uOR] X Cache_control init on 11/07/17 
   18:56:17.691 [141.101.69.79:32267 1 uOR] CHK html bypass: miss footer const 11/
   07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] X Cache_control off – feed 11/
   07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] X Cache_control -> no Cache \ 
   LSC_Control::set_nocache()@229 \ LSC_Control::finalize()@441 \ LSC->send_headers()
   @499 11/07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] get_uid: 0 11/07/17 18:
   56:17.691 [141.101.69.79:32267 1 uOR] Vary role id: failed, guest 11/07/17 18:
   56:17.691 [141.101.69.79:32267 1 uOR] bypassed role check, guest 11/07/17 18:
   56:17.691 [141.101.69.79:32267 1 uOR] X-LiteSpeed-Cache-Control: no-cache 11/
   07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] CHK html bypass: miss footer const
   11/07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] Media bypass: Not frontend 
   HTML type 11/07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] GUI bypassed by no
   counter 11/07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] Optimizer bypass: Not
   frontend HTML type 11/07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] CDN bypass
   11/07/17 18:56:17.691 [141.101.69.79:32267 1 uOR] End response ——————————————————————————–
 * 11/07/17 18:56:17.832 [162.158.90.208:23081 1 o8a] GET HTTP/1.1 /wp-admin/admin.
   php
    11/07/17 18:56:17.832 [162.158.90.208:23081 1 o8a] Query String: page=lscache-
   optimization 11/07/17 18:56:17.832 [162.158.90.208:23081 1 o8a] User Agent: Mozilla/
   5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
   61.0.3163.100 Safari/537.36 11/07/17 18:56:17.832 [162.158.90.208:23081 1 o8a]
   Accept Encoding: gzip 11/07/17 18:56:17.832 [162.158.90.208:23081 1 o8a] Cookie
   _lscache_vary: admin_bar:1;logged-in:1;role:99 11/07/17 18:56:17.832 [162.158.90.208:
   23081 1 o8a] X-LSCACHE: true 11/07/17 18:56:17.832 [162.158.90.208:23081 1 o8a]
   LSCACHE_VARY_VALUE: +webp 11/07/17 18:56:17.886 [162.158.90.208:23081 1 o8a] 
   Media init 11/07/17 18:56:17.887 [162.158.90.208:23081 1 o8a] X Cache_control-
   > private ( logged in user ) 11/07/17 18:56:17.887 [162.158.90.208:23081 1 o8a]
   CDN init 11/07/17 18:56:17.887 [162.158.90.208:23081 1 o8a] Task init 11/07/17
   18:56:17.887 [162.158.90.208:23081 1 o8a] LSCWP_CTRL bypassed empty 11/07/17 
   18:56:17.984 [162.158.90.208:23081 1 o8a] X Cache_control -> no Cache ( Admin
   page ) \ LSC_Control::set_nocache()@229 \ LSC_Admin->admin_init()@103 11/07/17
   18:56:18.058 [162.158.90.208:23081 1 o8a] CHK html bypass: miss footer const 
   11/07/17 18:56:18.058 [162.158.90.208:23081 1 o8a] not cacheable before ctrl 
   finalize 11/07/17 18:56:18.058 [162.158.90.208:23081 1 o8a] get_uid: 1 11/07/
   17 18:56:18.058 [162.158.90.208:23081 1 o8a] Vary role group: administrator 11/
   07/17 18:56:18.058 [162.158.90.208:23081 1 o8a] Vary show_admin_bar_front: true
   11/07/17 18:56:18.058 [162.158.90.208:23081 1 o8a] Vary admin bar : true 11/07/
   17 18:56:18.059 [162.158.90.208:23081 1 o8a] X-LiteSpeed-Cache-Control: no-cache
   11/07/17 18:56:18.060 [162.158.90.208:23081 1 o8a] CHK html bypass: miss footer
   const 11/07/17 18:56:18.060 [162.158.90.208:23081 1 o8a] Media bypass: Not frontend
   HTML type 11/07/17 18:56:18.060 [162.158.90.208:23081 1 o8a] GUI bypassed by 
   no counter 11/07/17 18:56:18.060 [162.158.90.208:23081 1 o8a] Optimizer bypass:
   Not frontend HTML type 11/07/17 18:56:18.060 [162.158.90.208:23081 1 o8a] CDN
   bypass 11/07/17 18:56:18.060 [162.158.90.208:23081 1 o8a] End response ——————————————————————————–
 * 11/07/17 18:56:20.721 [162.158.90.208:36993 1 YgY] GET HTTP/1.1 /wp-admin/admin.
   php
    11/07/17 18:56:20.721 [162.158.90.208:36993 1 YgY] Query String: page=lscache-
   optimization&LSCWP_CTRL=sapi&LSCWP_NONCE=854f671c00&type=request_key 11/07/17
   18:56:20.721 [162.158.90.208:36993 1 YgY] User Agent: Mozilla/5.0 (Windows NT
   10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100
   Safari/537.36 11/07/17 18:56:20.721 [162.158.90.208:36993 1 YgY] Accept Encoding:
   gzip 11/07/17 18:56:20.721 [162.158.90.208:36993 1 YgY] Cookie _lscache_vary:
   admin_bar:1;logged-in:1;role:99 11/07/17 18:56:20.721 [162.158.90.208:36993 1
   YgY] X-LSCACHE: true 11/07/17 18:56:20.721 [162.158.90.208:36993 1 YgY] LSCACHE_VARY_VALUE:
   +webp 11/07/17 18:56:20.777 [162.158.90.208:36993 1 YgY] Media init 11/07/17 
   18:56:20.778 [162.158.90.208:36993 1 YgY] X Cache_control -> private ( logged
   in user ) 11/07/17 18:56:20.778 [162.158.90.208:36993 1 YgY] CDN init 11/07/17
   18:56:20.778 [162.158.90.208:36993 1 YgY] Task init 11/07/17 18:56:20.778 [162.158.90.208:
   36993 1 YgY] LSCWP_CTRL: sapi 11/07/17 18:56:20.778 [162.158.90.208:36993 1 YgY]
   LSCWP_CTRL verified: ‘sapi’ 11/07/17 18:56:20.779 [162.158.90.208:36993 1 YgY]
   Router parsed type: request_key \ LSC_Router::verify_type()@225 \ LSC_Admin_API::
   sapi_proceed()@96 \ LSC->proceed_action()@286 11/07/17 18:56:20.780 [162.158.90.208:
   36993 1 YgY] SAPI posting to : [https://wp.api.litespeedtech.com/request_key](https://wp.api.litespeedtech.com/request_key)
   11/07/17 18:56:21.354 [162.158.90.208:36993 1 YgY] SAPI failed to decode post
   json: “hash does not match: ClientCB[] Server[vD6bvYicz82V8MXO]” 11/07/17 18:
   56:21.354 [162.158.90.208:36993 1 YgY] SAPI request key failed: — ‘hash does 
   not match: ClientCB[] Server[vD6bvYicz82V8MXO]’ 11/07/17 18:56:21.355 [162.158.90.208:
   36993 1 YgY] 301 from [https://www.dotnetcodegeeks.com/wp-admin/admin.php](https://www.dotnetcodegeeks.com/wp-admin/admin.php)
   11/07/17 18:56:21.355 [162.158.90.208:36993 1 YgY] 301 to [https://www.dotnetcodegeeks.com/wp-admin/admin.php?page=lscache-optimization&type=request_key](https://www.dotnetcodegeeks.com/wp-admin/admin.php?page=lscache-optimization&type=request_key)
   11/07/17 18:56:21.355 [162.158.90.208:36993 1 YgY] X Cache_control -> no Cache(
   301 to same url ) \ LSC_Control::set_nocache()@229 \ LSC_Control::check_redirect()
   @349 11/07/17 18:56:21.356 [162.158.90.208:36993 1 YgY] CHK html bypass: miss
   footer const 11/07/17 18:56:21.356 [162.158.90.208:36993 1 YgY] not cacheable
   before ctrl finalize 11/07/17 18:56:21.356 [162.158.90.208:36993 1 YgY] get_uid:
   1 11/07/17 18:56:21.356 [162.158.90.208:36993 1 YgY] Vary role group: administrator
   11/07/17 18:56:21.356 [162.158.90.208:36993 1 YgY] Vary show_admin_bar_front:
   true 11/07/17 18:56:21.356 [162.158.90.208:36993 1 YgY] Vary admin bar : true
   11/07/17 18:56:21.357 [162.158.90.208:36993 1 YgY] X-LiteSpeed-Cache-Control:
   no-cache 11/07/17 18:56:21.357 [162.158.90.208:36993 1 YgY] CHK html bypass: 
   miss footer const 11/07/17 18:56:21.357 [162.158.90.208:36993 1 YgY] Media bypass:
   Not frontend HTML type 11/07/17 18:56:21.357 [162.158.90.208:36993 1 YgY] GUI
   bypassed by no counter 11/07/17 18:56:21.357 [162.158.90.208:36993 1 YgY] Optimizer
   bypass: Not frontend HTML type 11/07/17 18:56:21.357 [162.158.90.208:36993 1 
   YgY] CDN bypass 11/07/17 18:56:21.357 [162.158.90.208:36993 1 YgY] End response——————————————————————————–
 * 11/07/17 18:56:21.736 [162.158.90.208:26269 1 Wfb] GET HTTP/1.1 /wp-admin/admin.
   php
    11/07/17 18:56:21.736 [162.158.90.208:26269 1 Wfb] Query String: page=lscache-
   optimization&type=request_key 11/07/17 18:56:21.736 [162.158.90.208:26269 1 Wfb]
   User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
   like Gecko) Chrome/61.0.3163.100 Safari/537.36 11/07/17 18:56:21.736 [162.158.90.208:
   26269 1 Wfb] Accept Encoding: gzip 11/07/17 18:56:21.736 [162.158.90.208:26269
   1 Wfb] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99 11/07/17 18:56:21.736[
   162.158.90.208:26269 1 Wfb] X-LSCACHE: true 11/07/17 18:56:21.736 [162.158.90.208:
   26269 1 Wfb] LSCACHE_VARY_VALUE: +webp 11/07/17 18:56:21.785 [162.158.90.208:
   26269 1 Wfb] Media init 11/07/17 18:56:21.785 [162.158.90.208:26269 1 Wfb] X 
   Cache_control -> private ( logged in user ) 11/07/17 18:56:21.785 [162.158.90.208:
   26269 1 Wfb] CDN init 11/07/17 18:56:21.786 [162.158.90.208:26269 1 Wfb] Task
   init 11/07/17 18:56:21.786 [162.158.90.208:26269 1 Wfb] LSCWP_CTRL bypassed empty
   11/07/17 18:56:21.881 [162.158.90.208:26269 1 Wfb] X Cache_control -> no Cache(
   Admin page ) \ LSC_Control::set_nocache()@229 \ LSC_Admin->admin_init()@103 11/
   07/17 18:56:21.948 [162.158.90.208:26269 1 Wfb] CHK html bypass: miss footer 
   const 11/07/17 18:56:21.948 [162.158.90.208:26269 1 Wfb] not cacheable before
   ctrl finalize 11/07/17 18:56:21.956 [162.158.90.208:26269 1 Wfb] get_uid: 1 11/
   07/17 18:56:21.956 [162.158.90.208:26269 1 Wfb] Vary role group: administrator
   11/07/17 18:56:21.956 [162.158.90.208:26269 1 Wfb] Vary show_admin_bar_front:
   true 11/07/17 18:56:21.956 [162.158.90.208:26269 1 Wfb] Vary admin bar : true
   11/07/17 18:56:21.957 [162.158.90.208:26269 1 Wfb] X-LiteSpeed-Cache-Control:
   no-cache 11/07/17 18:56:21.958 [162.158.90.208:26269 1 Wfb] CHK html bypass: 
   miss footer const 11/07/17 18:56:21.958 [162.158.90.208:26269 1 Wfb] Media bypass:
   Not frontend HTML type 11/07/17 18:56:21.958 [162.158.90.208:26269 1 Wfb] GUI
   bypassed by no counter 11/07/17 18:56:21.958 [162.158.90.208:26269 1 Wfb] Optimizer
   bypass: Not frontend HTML type 11/07/17 18:56:21.958 [162.158.90.208:26269 1 
   Wfb] CDN bypass 11/07/17 18:56:21.958 [162.158.90.208:26269 1 Wfb] End response——————————————————————————–
 * 11/07/17 18:56:28.398 [162.158.90.208:13581 1 ZIe] GET HTTP/1.1 /wp-admin/admin.
   php
    11/07/17 18:56:28.398 [162.158.90.208:13581 1 ZIe] Query String: page=lscache-
   debug 11/07/17 18:56:28.398 [162.158.90.208:13581 1 ZIe] User Agent: Mozilla/
   5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
   61.0.3163.100 Safari/537.36 11/07/17 18:56:28.398 [162.158.90.208:13581 1 ZIe]
   Accept Encoding: gzip 11/07/17 18:56:28.398 [162.158.90.208:13581 1 ZIe] Cookie
   _lscache_vary: admin_bar:1;logged-in:1;role:99 11/07/17 18:56:28.398 [162.158.90.208:
   13581 1 ZIe] X-LSCACHE: true 11/07/17 18:56:28.398 [162.158.90.208:13581 1 ZIe]
   LSCACHE_VARY_VALUE: +webp 11/07/17 18:56:28.453 [162.158.90.208:13581 1 ZIe] 
   Media init 11/07/17 18:56:28.454 [162.158.90.208:13581 1 ZIe] X Cache_control-
   > private ( logged in user ) 11/07/17 18:56:28.454 [162.158.90.208:13581 1 ZIe]
   CDN init 11/07/17 18:56:28.454 [162.158.90.208:13581 1 ZIe] Task init 11/07/17
   18:56:28.454 [162.158.90.208:13581 1 ZIe] LSCWP_CTRL bypassed empty 11/07/17 
   18:56:28.569 [162.158.90.208:13581 1 ZIe] X Cache_control -> no Cache ( Admin
   page ) \ LSC_Control::set_nocache()@229 \ LSC_Admin->admin_init()@103
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9659834)
 * This is not callback log. callback log is some like :
 *     ```
       11/07/17 12:00:05.425 [192.168.0.54:47568 1 qWJ] POST HTTP/1.1 /
       11/07/17 12:00:05.425 [192.168.0.54:47568 1 qWJ] Query String: litespeed_callback=1
       ```
   
 * Please paste it in [https://gist.github.com/](https://gist.github.com/)
 *  Thread Starter [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9659843)
 * Where can I find the callback log?
 *  Thread Starter [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9661950)
 * Hello,
 * I managed to pinpoint the cause of this issue. There seems to be incompatibility
   with CloudFlare.
 * I disabled CloudFlare on my site and the plugin worked.
 * Please keep that in mind so as to fix any CloudFlare related incompatibilities
   in future versions since many sites use their service.
 *  Plugin Support [Cold Egg](https://wordpress.org/support/users/eric780217/)
 * (@eric780217)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9663413)
 * Hi kioub,
 * Thanks your information. I have a server with CloudFlare to run image optimize
   success , so not sure how to reproduce it.
    Here is my debug log:
 *     ```
       yX0] Query String: litespeed_callback=1
       yX0] SAPI __callback hash check 6sAXbd660ZtxnbJx: passed
       yX0] LSCWP_CTRL: sapi_passive_callback
       yX0] LSCWP_CTRL verified: 'sapi_passive_callback'
       yX0] Router parsed type: request_callback
       yX0] SAPI __callback request hash: 6sAXbd660ZtxnbJx
       ```
   
 * We can improve or debug if you can share failed callback log from debug log.
   
   Also, do you set any firewall settings from CloudFlare? Do you use Pro plan?
 * Best,
    Eric
 *  Thread Starter [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9664075)
 * Hello,
 * Below is the portion of the debug log that is logged when I try to retrieve a
   key:
 *     ```
       11/08/17 21:30:24.054 [162.158.90.208:22037 1 yL4] GET HTTP/1.1 /wp-admin/admin.php
       11/08/17 21:30:24.054 [162.158.90.208:22037 1 yL4] Query String: page=lscache-optimization&LSCWP_CTRL=sapi&LSCWP_NONCE=90be135921&type=request_key
       11/08/17 21:30:24.054 [162.158.90.208:22037 1 yL4] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36
       11/08/17 21:30:24.054 [162.158.90.208:22037 1 yL4] Accept Encoding: gzip
       11/08/17 21:30:24.054 [162.158.90.208:22037 1 yL4] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
       11/08/17 21:30:24.054 [162.158.90.208:22037 1 yL4] X-LSCACHE: true
       11/08/17 21:30:24.054 [162.158.90.208:22037 1 yL4] LSCACHE_VARY_VALUE: +webp
       11/08/17 21:30:24.108 [162.158.90.208:22037 1 yL4] Media init
       11/08/17 21:30:24.109 [162.158.90.208:22037 1 yL4] X Cache_control -> private ( logged in user )
       11/08/17 21:30:24.109 [162.158.90.208:22037 1 yL4] CDN init
       11/08/17 21:30:24.109 [162.158.90.208:22037 1 yL4] Task init
       11/08/17 21:30:24.110 [162.158.90.208:22037 1 yL4] LSCWP_CTRL: sapi
       11/08/17 21:30:24.110 [162.158.90.208:22037 1 yL4] LSCWP_CTRL verified: 'sapi'
       11/08/17 21:30:24.110 [162.158.90.208:22037 1 yL4] Router parsed type: request_key \ LSC_Router::verify_type()@225 \ LSC_Admin_API::sapi_proceed()@96 \ LSC->proceed_action()@286
       11/08/17 21:30:24.111 [162.158.90.208:22037 1 yL4] SAPI posting to : https://wp.api.litespeedtech.com/request_key
       11/08/17 21:30:26.022 [162.158.90.208:22037 1 yL4] SAPI failed to decode post json: "hash does not match: ClientCB[] Server[dX3o0lL2o7AhLIue]"
       11/08/17 21:30:26.022 [162.158.90.208:22037 1 yL4] SAPI request key failed: --- 'hash does not match: ClientCB[] Server[dX3o0lL2o7AhLIue]'
       11/08/17 21:30:26.024 [162.158.90.208:22037 1 yL4] 301 from https://www.dotnetcodegeeks.com/wp-admin/admin.php
       11/08/17 21:30:26.024 [162.158.90.208:22037 1 yL4] 301 to https://www.dotnetcodegeeks.com/wp-admin/admin.php?page=lscache-optimization&type=request_key
       11/08/17 21:30:26.024 [162.158.90.208:22037 1 yL4] X Cache_control -> no Cache ( 301 to same url ) \ LSC_Control::set_nocache()@229 \ LSC_Control::check_redirect()@349
       11/08/17 21:30:26.024 [162.158.90.208:22037 1 yL4] CHK html bypass: miss footer const
       11/08/17 21:30:26.024 [162.158.90.208:22037 1 yL4] not cacheable before ctrl finalize
       11/08/17 21:30:26.025 [162.158.90.208:22037 1 yL4] get_uid: 1
       11/08/17 21:30:26.025 [162.158.90.208:22037 1 yL4] Vary role group: administrator
       11/08/17 21:30:26.025 [162.158.90.208:22037 1 yL4] Vary show_admin_bar_front: true
       11/08/17 21:30:26.025 [162.158.90.208:22037 1 yL4] Vary admin bar : true
       11/08/17 21:30:26.026 [162.158.90.208:22037 1 yL4] X-LiteSpeed-Cache-Control: no-cache
       11/08/17 21:30:26.026 [162.158.90.208:22037 1 yL4] CHK html bypass: miss footer const
       11/08/17 21:30:26.026 [162.158.90.208:22037 1 yL4] Media bypass: Not frontend HTML type
       11/08/17 21:30:26.026 [162.158.90.208:22037 1 yL4] GUI bypassed by no counter
       11/08/17 21:30:26.026 [162.158.90.208:22037 1 yL4] Optimizer bypass: Not frontend HTML type
       11/08/17 21:30:26.026 [162.158.90.208:22037 1 yL4] CDN bypass
       11/08/17 21:30:26.026 [162.158.90.208:22037 1 yL4] End response
       --------------------------------------------------------------------------------
   
       11/08/17 21:30:26.356 [162.158.90.208:13239 1 Uda] GET HTTP/1.1 /wp-admin/admin.php
       11/08/17 21:30:26.356 [162.158.90.208:13239 1 Uda] Query String: page=lscache-optimization&type=request_key
       11/08/17 21:30:26.356 [162.158.90.208:13239 1 Uda] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36
       11/08/17 21:30:26.356 [162.158.90.208:13239 1 Uda] Accept Encoding: gzip
       11/08/17 21:30:26.356 [162.158.90.208:13239 1 Uda] Cookie _lscache_vary: admin_bar:1;logged-in:1;role:99
       11/08/17 21:30:26.356 [162.158.90.208:13239 1 Uda] X-LSCACHE: true
       11/08/17 21:30:26.356 [162.158.90.208:13239 1 Uda] LSCACHE_VARY_VALUE: +webp
       11/08/17 21:30:26.405 [162.158.90.208:13239 1 Uda] Media init
       11/08/17 21:30:26.405 [162.158.90.208:13239 1 Uda] X Cache_control -> private ( logged in user )
       11/08/17 21:30:26.405 [162.158.90.208:13239 1 Uda] CDN init
       11/08/17 21:30:26.405 [162.158.90.208:13239 1 Uda] Task init
       11/08/17 21:30:26.406 [162.158.90.208:13239 1 Uda] LSCWP_CTRL bypassed empty
       11/08/17 21:30:26.504 [162.158.90.208:13239 1 Uda] X Cache_control -> no Cache ( Admin page ) \ LSC_Control::set_nocache()@229 \ LSC_Admin->admin_init()@103
       11/08/17 21:30:26.573 [162.158.90.208:13239 1 Uda] CHK html bypass: miss footer const
       11/08/17 21:30:26.573 [162.158.90.208:13239 1 Uda] not cacheable before ctrl finalize
       11/08/17 21:30:26.573 [162.158.90.208:13239 1 Uda] get_uid: 1
       11/08/17 21:30:26.573 [162.158.90.208:13239 1 Uda] Vary role group: administrator
       11/08/17 21:30:26.573 [162.158.90.208:13239 1 Uda] Vary show_admin_bar_front: true
       11/08/17 21:30:26.573 [162.158.90.208:13239 1 Uda] Vary admin bar : true
       11/08/17 21:30:26.573 [162.158.90.208:13239 1 Uda] X-LiteSpeed-Cache-Control: no-cache
       11/08/17 21:30:26.574 [162.158.90.208:13239 1 Uda] CHK html bypass: miss footer const
       11/08/17 21:30:26.574 [162.158.90.208:13239 1 Uda] Media bypass: Not frontend HTML type
       11/08/17 21:30:26.574 [162.158.90.208:13239 1 Uda] GUI bypassed by no counter
       11/08/17 21:30:26.574 [162.158.90.208:13239 1 Uda] Optimizer bypass: Not frontend HTML type
       11/08/17 21:30:26.574 [162.158.90.208:13239 1 Uda] CDN bypass
       11/08/17 21:30:26.574 [162.158.90.208:13239 1 Uda] End response
       --------------------------------------------------------------------------------
       ```
   
 * I have the default firewall settings (Medium) on CloudFlare, and no I do not 
   use a PRO plan, I am on the free site plan.
 * Looking forward to your feedback.
 * Best,
    Byron
 *  Plugin Support [Cold Egg](https://wordpress.org/support/users/eric780217/)
 * (@eric780217)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9664212)
 * Hi Byron,
 * I still not found any `litespeed_callback` from your log. Can you try again?
   
   or something like `SAPI __callback hash check xxxx: failed`
 * You can enable Debug log for Admin only to get error log easier.
 * Thanks.
    Eric
 *  Thread Starter [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9664362)
 * Hello,
 * No matter how many times I try, there is no log entry marked as “callback” recorded
   in the debug.log file, that is why you cannot find it.
 * All it gets recorded is what I posted on my last message. I have enabled debug
   log from the plugin setting page and set debug level to advanced. Everything 
   else is set to default.
 * Looking forward to your feedback.
 *  Plugin Support [Cold Egg](https://wordpress.org/support/users/eric780217/)
 * (@eric780217)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9664434)
 * Not so sure is there any settings will bypass Query String? like from CloudFlare?
 *  Thread Starter [kioub](https://wordpress.org/support/users/kioub/)
 * (@kioub)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/#post-9664696)
 * I do not think so, the caching level is at “Standard” setting. Everything else
   is pretty much at default values for the free site plan. The main configuration
   there is that I force redirection to HTTPS through CloudFlare using its “Flexible”
   HTTPS option.
 * The only time I see the `litespeed_callback` literal in the debug log file is
   when I Pause CloudFlare for my site. When I resume its operation the logs are
   as I have posted above.

Viewing 15 replies - 1 through 15 (of 22 total)

1 [2](https://wordpress.org/support/topic/litespeed-cache-image-optimization/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/litespeed-cache-image-optimization/page/2/?output_format=md)

The topic ‘LiteSpeed Cache Image Optimization’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 22 replies
 * 4 participants
 * Last reply from: [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/litespeed-cache-image-optimization/page/2/#post-9754119)
 * Status: resolved