• Resolved stfa76

    (@stfa76)


    Hi,

    First, I’d like to congratulate you for this great antispam tool since it is really blocking all the spam attempts.

    But, I’ve also noticed that the “admin-ajax” request you’re making has a significant impact on the loading of the page as you can see below (generally between 300 and 500ms).

    Are there specific reasons for not allowing to cache this “admin-ajax” request?

    I’ve already asked the very same question to the “WP Rocket” support team (the cache plugin that I’m using) but they told me they do not cache this specific “admin-ajax” request.

    Thanks a lot for your help,
    Stephane.

    http://www.webpagetest.org/result/180824_EN_9b0b6bf37713801b24e883dac0ed2a0a/1/details/#step1_request19

    
    - Request 19: https://www.digitalcine.fr/wp-admin/admin-ajax.php?0.685477285010903
    
    URL: https://www.digitalcine.fr/wp-admin/admin-ajax.php?0.685477285010903
    Host: www.digitalcine.fr
    IP: 104.27.164.231
    Error/Status Code: 200
    Priority: MEDIUM
    Protocol: HTTP/2
    HTTP/2 Stream: 35, weight 220, depends on 31
    Initiated By: https://www.digitalcine.fr/wp-content/cache/min/1/wp-content/plugins/cleantalk-spam-protect/inc/cleantalk_nocache-4336392b4ffc5f18ec4a3234fe45ecff.js line 5 column 47
    Request Start: 1.072 s
    Time to First Byte: 475 ms
    Content Download: 1 ms
    Bytes In (downloaded): 0.4 KB
    Uncompressed Size: 0.0 KB
    Bytes Out (uploaded): 0.7 KB
    
    Request Headers:
    
    origin: https://www.digitalcine.fr
    :path: /wp-admin/admin-ajax.php?0.685477285010903
    accept-language: en-US,en;q=0.9
    accept-encoding: gzip, deflate, br
    content-length: 20
    accept: */*
    user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36 PTST/180818.200830
    :scheme: https
    referer: https://www.digitalcine.fr/4k-bluray-dvd/tests-bluray-4k-ultra-hd/36940-red-sparrow-4kamarade-jennifer/
    :method: POST
    cookie: __cfduid=dfbf021742550d61f8cb7c7dd483510c81535107625; ct_checkjs=73629179; ct_ps_timestamp=1535107626; ct_fkp_timestamp=0; ct_pointer_data=0; ct_timezone=0
    :authority: www.digitalcine.fr
    content-type: application/x-www-form-urlencoded
    
    Response Headers:
    
    status: 200
    expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    x-cache-enabled: True
    x-robots-tag: noindex
    x-content-type-options: nosniff
    content-encoding: br
    set-cookie: ct_cookies_test=4b27b9d4daab2bf949c8ea8eeb5a0544; path=/
    set-cookie: wpSGCacheBypass=0; expires=Fri, 24-Aug-2018 09:47:06 GMT; Max-Age=0; path=/
    access-control-allow-origin: https://www.digitalcine.fr
    expires: Wed, 11 Jan 1984 05:00:00 GMT
    vary: Accept-Encoding
    server: cloudflare
    cache-control: no-cache, must-revalidate, max-age=0
    host-header: 192fc2e7e50945beb8231a492d6a8024
    access-control-allow-credentials: true
    date: Fri, 24 Aug 2018 10:47:07 GMT
    cf-ray: 44f53d2b3e7064bd-FRA
    referrer-policy: strict-origin-when-cross-origin
    content-type: text/html; charset=UTF-8
    x-frame-options: SAMEORIGIN
    x-cf-powered-by: WP Rocket 3.1.2

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support amagsumov

    (@amagsumov)

    Hello, @stfa76

    Thank you for your request.

    We will investigate this issue. We need 1-2 working days for it.

    Please, wait.

    Thank you.

    Hello,

    I fully agree with WP Rocket support team, AJAX requests shouldn’t be cached.
    I think that one simple thing could help you.
    I see that you have Caldera Forms on your website. We have direct integration with Caldera Forms and WordPress comment form so you don’t need to use “Use AJAX for JavaScript check” option in CleanTalk’s settings. Please, set this option to “No” and save changes.

    I hope this will help you. Please, contact us on the results.

    Thread Starter stfa76

    (@stfa76)

    Hello @safronik,

    Thank you so much for the advice.
    Now I don’t see that admin-ajax request taking that much time anymore when testing my website’s pages.

    Plugin Support amagsumov

    (@amagsumov)

    You are welcome.

    If you have any questions, please, let us know.

    Best regards.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘admin-ajax’ is closed to new replies.