• Resolved conorseed

    (@conorseed)


    Hey there ?? Firstly, I love this plugin – so thank you!

    Secondly, my issue is that when Litespeed Cache is enabled, I get a 403 response from a specific ajax GET request. When disabled, it works as it should. I’ve tried keeping the cache enabled and turning all of the caching and tuning options, but the issue persists.

    Would love any help you could give! Thanks

    • This topic was modified 7 years, 3 months ago by conorseed.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi,

    Look at LiteSpeed -> Settings -> Excludes if the ajax GET request is on a page (clear the cache after you do that).

    If it is something in admin panel test to turn off the “Cache Logged-in Users” from the Cache tab.

    Plugin Support Hai Zheng?

    (@hailite)

    Hi @conorseed,

    Thanks for using LSCWP. We are glad you like it.

    To debug you issue, please give a report number.

    Also please give more info on where that 403 request is from. Is it a plugin?

    Thanks,
    Hai

    Thread Starter conorseed

    (@conorseed)

    @tishu & @hailite thanks for the replies.

    I’ve tried excluding “admin-ajax.php?action=” in the Do Not Cache URIs, to no effect.

    I’m unsure what a ‘report number’ is?

    And the 403 request is from a custom ajax call I wrote. It works perfectly when Litespeed Cache plugin is disabled, but gives a 403 error when called with Litespeed enabled.

    Thanks for your time ??

    Plugin Support Hai Zheng?

    (@hailite)

    report number is from report menu under setting menu.

    If you wrote it, will be easier to debug. You don’t have to give the report number then. Please check your PHP error, there should be something.

    Thread Starter conorseed

    (@conorseed)

    @hailite Awesome – my report number is: ADBDIYYD

    There’s no php errors that I can find. I setup wp-config.php to enable debugging and logging, and no errors.

    Plugin Support Hai Zheng?

    (@hailite)

    Can you find any LSCWP debug log for that 403 request?

    Thread Starter conorseed

    (@conorseed)

    Where would I find that on the server @hailite? ??

    EDIT: Sorry that was a dumb question. Here’s the log for that specific request:

    12/15/17 13:56:07.824 [101.98.234.26:49359 1 uJu] GET HTTP/1.1 /wp-admin/admin-ajax.php
    12/15/17 13:56:07.824 [101.98.234.26:49359 1 uJu] Query String: action=ptmcc&security=d47a335eed
    12/15/17 13:56:07.824 [101.98.234.26:49359 1 uJu] User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
    12/15/17 13:56:07.824 [101.98.234.26:49359 1 uJu] Accept Encoding: gzip, deflate, br
    12/15/17 13:56:07.824 [101.98.234.26:49359 1 uJu] X-LSCACHE: true
    12/15/17 13:56:07.882 [101.98.234.26:49359 1 uJu] Media init
    12/15/17 13:56:07.882 [101.98.234.26:49359 1 uJu] CDN init
    12/15/17 13:56:07.883 [101.98.234.26:49359 1 uJu] Task init
    12/15/17 13:56:07.883 [101.98.234.26:49359 1 uJu] LSCWP_CTRL bypassed empty
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] CHK html bypass: miss footer const
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] not cacheable before ctrl finalize
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] Router: get_uid: 0 \ LSC_Router::get_uid()@40 \ LSC_Vary->_finalize_default_vary()@294 \ LSC_Vary->_update_default_vary()@264 \ LSC_Vary->_finalize()@467
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] Router: get_role: 
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] Router: role: guest
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] Vary: role id: failed, guest
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] Vary: finalize bypassed due to no vary 
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] X-LiteSpeed-Cache-Control: no-cache
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] CHK html bypass: miss footer const
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] Media bypass: Not frontend HTML type
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] GUI bypassed by no counter
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] Optimizer bypass: Not frontend HTML type
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] CDN bypass
    12/15/17 13:56:07.928 [101.98.234.26:49359 1 uJu] End response
    --------------------------------------------------------------------------------
    • This reply was modified 7 years, 3 months ago by conorseed. Reason: Additional info
    Plugin Support Hai Zheng?

    (@hailite)

    setting -> debug

    Thread Starter conorseed

    (@conorseed)

    @hailite see edited reply above ??

    Plugin Support Hai Zheng?

    (@hailite)

    Looks like LSCWP ran successfully without any issue. You may need to check LSWS server log to figure out which caused 403.

    Thread Starter conorseed

    (@conorseed)

    Will I need to contact my host to get that?

    Looking around some more, it seems that on some pages the request runs perfectly, but on others it gives the 403 error. Very strange!!

    Plugin Support Hai Zheng?

    (@hailite)

    Try to disable your plugin one by one, especially those security plugin. You may find which one caused the issue.

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi, @conorseed

    Are you still having a problem with this? If so, please let us know. If not, I’ll mark it resolved.

    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘admin-ajax.php GET 403’ is closed to new replies.