admin-ajax.php GET 403




Wordpress LScache Plugin: admin-ajax.php GET 403

Last Updated on: Wed, 15 Apr 2026 00:00:02
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. Ive 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 4 years, 11 months ago by conorseed. The page I need help with: https://ochreandelm.co.nz/ 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. 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 @tishu & @hailite thanks for the replies. Ive tried excluding admin-ajax.php?action= in the Do Not Cache URIs, to no effect. Im 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 report number is from report menu under setting menu. If you wrote it, will be easier to debug. You dont have to give the report number then. Please check your PHP error, there should be something. @hailite Awesome ? my report number is: ADBDIYYD Theres no php errors that I can find. I setup wp-config.php to enable debugging and logging, and no errors. Can you find any LSCWP debug log for that 403 request? Where would I find that on the server @hailite? EDIT: Sorry that was a dumb question. Heres 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 --------------------------------------------------------------------------------Expand Reason: Additional info setting -> debug @hailite see edited reply above Looks like LSCWP ran successfully without any issue. You may need to check LSWS server log to figure out which caused 403. 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 strangeTry to disable your plugin one by one, especially those security plugin. You may find which one caused the issue. Hi, @conorseed Are you still having a problem with this? If so, please let us know. If not, Ill mark it resolved. Thanks!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference